mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
llvm upgrade doesn't accept 'define'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32891 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e617c9ed5d
commit
e76b77c96a
@ -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…
x
Reference in New Issue
Block a user