forked from OSchip/llvm-project
parent
702c1d11b5
commit
69c68c3c3e
|
@ -1,6 +1,7 @@
|
||||||
; This test makes sure that these instructions are properly eliminated.
|
; 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 '
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep -v xor | not grep 'or '
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
@ -149,3 +150,9 @@ int %test22(int %B) {
|
||||||
ret int %ELIM5
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue