aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/call-ret42.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Generic/call-ret42.ll')
-rw-r--r--test/CodeGen/Generic/call-ret42.ll12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/Generic/call-ret42.ll b/test/CodeGen/Generic/call-ret42.ll
index b0a480f..ac9bd92 100644
--- a/test/CodeGen/Generic/call-ret42.ll
+++ b/test/CodeGen/Generic/call-ret42.ll
@@ -1,10 +1,10 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc
+; RUN: llvm-as < %s | llc
-int %foo(int %x) {
- ret int 42
+define i32 @foo(i32 %x) {
+ ret i32 42
}
-int %main() {
- %r = call int %foo(int 15)
- ret int %r
+define i32 @main() {
+ %r = call i32 @foo( i32 15 ) ; <i32> [#uses=1]
+ ret i32 %r
}