new testcase

llvm-svn: 26384
This commit is contained in:
Chris Lattner 2006-02-26 19:55:30 +00:00
parent 702c1d11b5
commit 69c68c3c3e
1 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,7 @@
; This test makes sure that these instructions are properly eliminated.
;
; RUN: llvm-as < %s | opt -instcombine -disable-output &&
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep -v xor | not grep 'or '
implementation
@ -148,4 +149,10 @@ int %test22(int %B) {
%ELIM5 = or int %ELIM41, %ELIM7 ; <int> [#uses=1]
ret int %ELIM5
}
ushort %test23(ushort %A) {
%B = shr ushort %A, ubyte 1
%C = or ushort %B, 32768 ;; fold or into xor
%D = xor ushort %C, 8193
ret ushort %D
}