summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/hello2.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/hello2.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/hello2.ll')
-rw-r--r--llvm/test/ExecutionEngine/hello2.ll24
1 files changed, 10 insertions, 14 deletions
diff --git a/llvm/test/ExecutionEngine/hello2.ll b/llvm/test/ExecutionEngine/hello2.ll
index b186c52e2b5..772dc0493e5 100644
--- a/llvm/test/ExecutionEngine/hello2.ll
+++ b/llvm/test/ExecutionEngine/hello2.ll
@@ -1,22 +1,18 @@
-; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
+; RUN: llvm-as < %s -f -o %t.bc
; RUN: lli %t.bc > /dev/null
+@X = global i32 7 ; <i32*> [#uses=0]
+@msg = internal global [13 x i8] c"Hello World\0A\00" ; <[13 x i8]*> [#uses=1]
-%X = global int 7
-%msg = internal global [13 x sbyte] c"Hello World\0A\00"
+declare void @printf([13 x i8]*, ...)
-
-implementation
-
-declare void %printf([13 x sbyte]*,...)
-
-void %bar() {
- call void([13 x sbyte]*,...)* %printf([13 x sbyte]* %msg)
- ret void
+define void @bar() {
+ call void ([13 x i8]*, ...)* @printf( [13 x i8]* @msg )
+ ret void
}
-int %main() {
- call void %bar()
- ret int 0
+define i32 @main() {
+ call void @bar( )
+ ret i32 0
}
OpenPOWER on IntegriCloud