From 53a66d10f01ebfeac7b8e59ca677f2cf2d4a3b26 Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Tue, 19 Feb 2008 01:41:04 +0000 Subject: Remove llvm-upgrade and update tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47296 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/Generic/print-add.ll | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'test/CodeGen/Generic/print-add.ll') diff --git a/test/CodeGen/Generic/print-add.ll b/test/CodeGen/Generic/print-add.ll index ef224a1..4f1cb5e 100644 --- a/test/CodeGen/Generic/print-add.ll +++ b/test/CodeGen/Generic/print-add.ll @@ -1,18 +1,18 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc +; RUN: llvm-as < %s | llc -%.str_1 = internal constant [4 x sbyte] c"%d\0A\00" +@.str_1 = internal constant [4 x i8] c"%d\0A\00" ; <[4 x i8]*> [#uses=1] -declare int %printf(sbyte*, ...) +declare i32 @printf(i8*, ...) -int %main() { - %f = getelementptr [4 x sbyte]* %.str_1, long 0, long 0 - %d = add int 1, 0 - call int (sbyte*, ...)* %printf(sbyte* %f, int %d) - %e = add int 38, 2 - call int (sbyte*, ...)* %printf(sbyte* %f, int %e) - %g = add int %d, %d - %h = add int %e, %g - call int (sbyte*, ...)* %printf(sbyte* %f, int %h) - ret int 0 +define i32 @main() { + %f = getelementptr [4 x i8]* @.str_1, i64 0, i64 0 ; [#uses=3] + %d = add i32 1, 0 ; [#uses=3] + call i32 (i8*, ...)* @printf( i8* %f, i32 %d ) ; :1 [#uses=0] + %e = add i32 38, 2 ; [#uses=2] + call i32 (i8*, ...)* @printf( i8* %f, i32 %e ) ; :2 [#uses=0] + %g = add i32 %d, %d ; [#uses=1] + %h = add i32 %e, %g ; [#uses=1] + call i32 (i8*, ...)* @printf( i8* %f, i32 %h ) ; :3 [#uses=0] + ret i32 0 } -- cgit v1.1