summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/test-constantexpr.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-10 07:21:50 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-10 07:21:50 +0000
commit5f4b355f209c772f438d33f3e60c04403d5462eb (patch)
tree25f6441aedb4ae5e89993b0ebaca6817ef24acd2 /llvm/test/ExecutionEngine/test-constantexpr.ll
parentb5d11980d9c54e4a0ebb3873ef89054726643658 (diff)
downloadbcm5719-llvm-5f4b355f209c772f438d33f3e60c04403d5462eb.tar.gz
bcm5719-llvm-5f4b355f209c772f438d33f3e60c04403d5462eb.zip
Remove llvm-upgrade and update tests.
llvm-svn: 48137
Diffstat (limited to 'llvm/test/ExecutionEngine/test-constantexpr.ll')
-rw-r--r--llvm/test/ExecutionEngine/test-constantexpr.ll13
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm/test/ExecutionEngine/test-constantexpr.ll b/llvm/test/ExecutionEngine/test-constantexpr.ll
index 1ee7e148e9c..2bf1949ead8 100644
--- a/llvm/test/ExecutionEngine/test-constantexpr.ll
+++ b/llvm/test/ExecutionEngine/test-constantexpr.ll
@@ -1,14 +1,13 @@
-; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
+; RUN: llvm-as < %s -f -o %t.bc
; RUN: lli %t.bc > /dev/null
; This tests to make sure that we can evaluate weird constant expressions
-%A = global int 5
-%B = global int 6
-implementation
+@A = global i32 5 ; <i32*> [#uses=1]
+@B = global i32 6 ; <i32*> [#uses=1]
-int %main() {
- %A = or bool false, setlt (int* %A, int* %B) ; Which is lower in memory?
- ret int 0
+define i32 @main() {
+ %A = or i1 false, icmp slt (i32* @A, i32* @B) ; <i1> [#uses=0]
+ ret i32 0
}
OpenPOWER on IntegriCloud