1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

new testcase

llvm-svn: 31728
This commit is contained in:
Chris Lattner 2006-11-14 07:45:36 +00:00
parent 616335f272
commit e9245afa13

View File

@ -0,0 +1,22 @@
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | egrep 'shl|lshr|ashr' | wc -l | grep 3
int %test0(int %A, int %B, ubyte %C) {
%X = shl int %A, ubyte %C
%Y = shl int %B, ubyte %C
%Z = and int %X, %Y
ret int %Z
}
int %test1(int %A, int %B, ubyte %C) {
%X = lshr int %A, ubyte %C
%Y = lshr int %B, ubyte %C
%Z = or int %X, %Y
ret int %Z
}
int %test2(int %A, int %B, ubyte %C) {
%X = ashr int %A, ubyte %C
%Y = ashr int %B, ubyte %C
%Z = xor int %X, %Y
ret int %Z
}