forked from OSchip/llvm-project
parent
23eb8ec78b
commit
54ea1ec249
|
@ -1,5 +1,6 @@
|
|||
; This test makes sure that add instructions are properly eliminated.
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep -v OK | not grep add
|
||||
|
||||
implementation
|
||||
|
@ -240,7 +241,7 @@ ubyte %test34(ubyte %A) {
|
|||
ret ubyte %C
|
||||
}
|
||||
|
||||
define i32 %test34(i32 %a) { ;; -> -1
|
||||
i32 %test34(i32 %a) { ;; -> -1
|
||||
%tmpnot = xor i32 %a, -1
|
||||
%tmp2 = add i32 %tmpnot, %a
|
||||
ret i32 %tmp2
|
||||
|
|
Loading…
Reference in New Issue