llvm upgrade doesn't accept 'define'

llvm-svn: 32891
This commit is contained in:
Chris Lattner 2007-01-05 03:03:27 +00:00
parent 23eb8ec78b
commit 54ea1ec249
1 changed files with 2 additions and 1 deletions

View File

@ -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