aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-05 03:03:27 +0000
committerChris Lattner <sabre@nondot.org>2007-01-05 03:03:27 +0000
commite76b77c96ac95812259b5d6175b1062aa7c6b90a (patch)
tree345b79d59076c7efbc929ebfc01b4f08e755511f /test
parente617c9ed5dd374b05c312e411857c74e9b458aa0 (diff)
downloadexternal_llvm-e76b77c96ac95812259b5d6175b1062aa7c6b90a.zip
external_llvm-e76b77c96ac95812259b5d6175b1062aa7c6b90a.tar.gz
external_llvm-e76b77c96ac95812259b5d6175b1062aa7c6b90a.tar.bz2
llvm upgrade doesn't accept 'define'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/add.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll
index aaf8548..ec3aea3 100644
--- a/test/Transforms/InstCombine/add.ll
+++ b/test/Transforms/InstCombine/add.ll
@@ -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