llvm upgrade doesn't accept 'define'
authorChris Lattner <sabre@nondot.org>
Fri, 5 Jan 2007 03:03:27 +0000 (03:03 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 5 Jan 2007 03:03:27 +0000 (03:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32891 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/add.ll

index aaf8548c0840faede8d1ee7fec6b1869add150cb..ec3aea3c877fecdd7f41595bb7de00f8c8269435 100644 (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