[llvm-commits] CVS: llvm/test/Integer/2007-01-19-TruncSext.ll
Changes in directory llvm/test/Integer: 2007-01-19-TruncSext.ll updated: 1.5 -> 1.6 --- Log message: Don't try to interpret a fictitious file. --- Diffs of the changes: (+1 -1) 2007-01-19-TruncSext.ll |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/test/Integer/2007-01-19-TruncSext.ll diff -u llvm/test/Integer/2007-01-19-TruncSext.ll:1.5 llvm/test/Integer/2007-01-19-TruncSext.ll:1.6 --- llvm/test/Integer/2007-01-19-TruncSext.ll:1.5 Sat Apr 14 12:12:21 2007 +++ llvm/test/Integer/2007-01-19-TruncSext.ll Sat Apr 14 12:41:12 2007 @@ -1,7 +1,7 @@ ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll ; RUN: diff %t1.ll %t2.ll -; RUN: llvm-as < %s | lli --force-interpreter=true %t3.bc | grep -- -255 +; RUN: llvm-as < %s | lli --force-interpreter=true | grep -- -255 @ARRAY = global [ 20 x i17 ] zeroinitializer @FORMAT = constant [ 4 x i8 ] c"%d\0A\00" ___ llvm-commits mailing list [EMAIL PROTECTED] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/Integer/2007-01-19-TruncSext.ll
Changes in directory llvm/test/Integer: 2007-01-19-TruncSext.ll updated: 1.4 -> 1.5 --- Log message: No need to quote things, shell isn't interpreting any more. --- Diffs of the changes: (+1 -1) 2007-01-19-TruncSext.ll |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/test/Integer/2007-01-19-TruncSext.ll diff -u llvm/test/Integer/2007-01-19-TruncSext.ll:1.4 llvm/test/Integer/2007-01-19-TruncSext.ll:1.5 --- llvm/test/Integer/2007-01-19-TruncSext.ll:1.4 Sat Apr 14 11:48:55 2007 +++ llvm/test/Integer/2007-01-19-TruncSext.ll Sat Apr 14 12:12:21 2007 @@ -1,7 +1,7 @@ ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll ; RUN: diff %t1.ll %t2.ll -; RUN: llvm-as < %s | lli --force-interpreter=true | grep -- '-255' +; RUN: llvm-as < %s | lli --force-interpreter=true %t3.bc | grep -- -255 @ARRAY = global [ 20 x i17 ] zeroinitializer @FORMAT = constant [ 4 x i8 ] c"%d\0A\00" ___ llvm-commits mailing list [EMAIL PROTECTED] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/Integer/2007-01-19-TruncSext.ll dg.exp packed_struct_bt.ll
Changes in directory llvm/test/Integer: 2007-01-19-TruncSext.ll updated: 1.3 -> 1.4 dg.exp updated: 1.2 -> 1.3 packed_struct_bt.ll updated: 1.3 -> 1.4 --- Log message: For PR1319: http://llvm.org/PR1319 : Changes necessary to run this with the "llvm.exp" version of llvm_runtest. --- Diffs of the changes: (+6 -5) 2007-01-19-TruncSext.ll |2 +- dg.exp |2 +- packed_struct_bt.ll |7 --- 3 files changed, 6 insertions(+), 5 deletions(-) Index: llvm/test/Integer/2007-01-19-TruncSext.ll diff -u llvm/test/Integer/2007-01-19-TruncSext.ll:1.3 llvm/test/Integer/2007-01-19-TruncSext.ll:1.4 --- llvm/test/Integer/2007-01-19-TruncSext.ll:1.3 Tue Jan 30 10:16:01 2007 +++ llvm/test/Integer/2007-01-19-TruncSext.ll Sat Apr 14 11:48:55 2007 @@ -24,6 +24,6 @@ %result = sext i17 %X to i32 %fmt = getelementptr [4 x i8]* @FORMAT, i32 0, i32 0 call i32 (i8*,...)* @printf(i8* %fmt, i32 %result) - ret i32 %result + ret i32 0 } Index: llvm/test/Integer/dg.exp diff -u llvm/test/Integer/dg.exp:1.2 llvm/test/Integer/dg.exp:1.3 --- llvm/test/Integer/dg.exp:1.2Wed Apr 11 14:56:58 2007 +++ llvm/test/Integer/dg.expSat Apr 14 11:48:55 2007 @@ -1,3 +1,3 @@ -load_lib llvm-dg.exp +load_lib llvm.exp llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] Index: llvm/test/Integer/packed_struct_bt.ll diff -u llvm/test/Integer/packed_struct_bt.ll:1.3 llvm/test/Integer/packed_struct_bt.ll:1.4 --- llvm/test/Integer/packed_struct_bt.ll:1.3 Tue Mar 27 21:38:26 2007 +++ llvm/test/Integer/packed_struct_bt.ll Sat Apr 14 11:48:55 2007 @@ -1,8 +1,9 @@ ; RUN: llvm-as < %s | llvm-dis > %t1.ll ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll -; RUN: diff %t1.ll %t2.ll && -; RUN: not grep cast %t2.ll && -; RUN: grep "<{" %t2.ll +; RUN: diff %t1.ll %t2.ll +; RUN: not grep cast %t2.ll +; RUN: grep '\<{' %t2.ll +; END. %struct.anon = type <{ i8, i35, i35, i35 }> @foos = external global %struct.anon ___ llvm-commits mailing list [EMAIL PROTECTED] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/Integer/2007-01-19-TruncSext.ll indirectcall_bt.ll paramattrs_bt.ll recursivetype_bt.ll
Changes in directory llvm/test/Integer: 2007-01-19-TruncSext.ll updated: 1.2 -> 1.3 indirectcall_bt.ll updated: 1.2 -> 1.3 paramattrs_bt.ll updated: 1.2 -> 1.3 recursivetype_bt.ll updated: 1.3 -> 1.4 --- Log message: For PR411: http://llvm.org/PR411 : Update these tests to not use the same name even though the type of the value differs. After PR411: http://llvm.org/PR411 hits, type planes will be gone and it will be illegal for a name to be used twice, regardless of type. --- Diffs of the changes: (+8 -8) 2007-01-19-TruncSext.ll |2 +- indirectcall_bt.ll |4 ++-- paramattrs_bt.ll|2 +- recursivetype_bt.ll |8 4 files changed, 8 insertions(+), 8 deletions(-) Index: llvm/test/Integer/2007-01-19-TruncSext.ll diff -u llvm/test/Integer/2007-01-19-TruncSext.ll:1.2 llvm/test/Integer/2007-01-19-TruncSext.ll:1.3 --- llvm/test/Integer/2007-01-19-TruncSext.ll:1.2 Fri Jan 26 02:25:06 2007 +++ llvm/test/Integer/2007-01-19-TruncSext.ll Tue Jan 30 10:16:01 2007 @@ -16,7 +16,7 @@ ret void } -define i32 @main(i32 %argc, i8** %argc) { +define i32 @main(i32 %argc, i8** %argv) { %i = bitcast i32 0 to i32 call void @multiply(i32 %i, i32 -1, i32 255) %P = getelementptr [20 x i17]* @ARRAY, i32 0, i32 0 Index: llvm/test/Integer/indirectcall_bt.ll diff -u llvm/test/Integer/indirectcall_bt.ll:1.2 llvm/test/Integer/indirectcall_bt.ll:1.3 --- llvm/test/Integer/indirectcall_bt.ll:1.2Fri Jan 26 02:25:06 2007 +++ llvm/test/Integer/indirectcall_bt.llTue Jan 30 10:16:01 2007 @@ -48,6 +48,6 @@ define i32 @"main"() begin %Result = call i63 @trampoline(i63 10, i63(i63) [EMAIL PROTECTED]) - %Result = trunc i63 %Result to i32 - ret i32 %Result + %Result2 = trunc i63 %Result to i32 + ret i32 %Result2 end Index: llvm/test/Integer/paramattrs_bt.ll diff -u llvm/test/Integer/paramattrs_bt.ll:1.2 llvm/test/Integer/paramattrs_bt.ll:1.3 --- llvm/test/Integer/paramattrs_bt.ll:1.2 Fri Jan 26 02:25:06 2007 +++ llvm/test/Integer/paramattrs_bt.ll Tue Jan 30 10:16:01 2007 @@ -14,7 +14,7 @@ %val = trunc i33 %argc to i16 %res = call i16 (i16 sext) sext [EMAIL PROTECTED](i16 %val) %two = add i16 %res, %res -%res = call i8 @test2(i16 %two zext) zext +%res2 = call i8 @test2(i16 %two zext) zext %retVal = sext i16 %two to i33 ret i33 %retVal } Index: llvm/test/Integer/recursivetype_bt.ll diff -u llvm/test/Integer/recursivetype_bt.ll:1.3 llvm/test/Integer/recursivetype_bt.ll:1.4 --- llvm/test/Integer/recursivetype_bt.ll:1.3 Fri Jan 26 02:25:06 2007 +++ llvm/test/Integer/recursivetype_bt.ll Tue Jan 30 10:16:01 2007 @@ -68,10 +68,10 @@ %cast1006 = bitcast %list** %reg119 to i8** ;; %reg111 = call i8* @malloc(i32 16) ;; store i8* %reg111, i8** %cast1006 ;; - %reg111 = ptrtoint i8* %reg111 to i64 - %reg1002 = add i64 %reg111, 8 -%reg1002 = inttoptr i64 %reg1002 to i8* ;; -%cast1008 = bitcast i8* %reg1002 to i36*;; + %reg112 = ptrtoint i8* %reg111 to i64 + %reg1002 = add i64 %reg112, 8 +%reg1005 = inttoptr i64 %reg1002 to i8* ;; +%cast1008 = bitcast i8* %reg1005 to i36*;; store i36 %Data, i36* %cast1008 ;; %cast1003 = inttoptr i64 0 to i64* ;; %cast1009 = bitcast i8* %reg111 to i64** ;; ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/Integer/2007-01-19-TruncSext.ll
Changes in directory llvm/test/Integer: 2007-01-19-TruncSext.ll added (r1.1) --- Log message: Add a test case for sext bug that Leo found. --- Diffs of the changes: (+29 -0) 2007-01-19-TruncSext.ll | 29 + 1 files changed, 29 insertions(+) Index: llvm/test/Integer/2007-01-19-TruncSext.ll diff -c /dev/null llvm/test/Integer/2007-01-19-TruncSext.ll:1.1 *** /dev/null Sat Jan 20 02:31:55 2007 --- llvm/test/Integer/2007-01-19-TruncSext.ll Sat Jan 20 02:31:45 2007 *** *** 0 --- 1,29 + ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll + ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll + ; RUN: diff %t1.ll %t2.ll + ; RUN: llvm-as < %s | lli --force-interpreter=true | grep -- '-255' + + %ARRAY = global [ 20 x i17 ] zeroinitializer + %FORMAT = constant [ 4 x i8 ] c"%d\0A\00" + + declare i32 %printf(i8* %format, ...) + + define void %multiply(i32 %index, i32 %X, i32 %Y) { + %Z = mul i32 %X, %Y + %P = getelementptr [20 x i17]* %ARRAY, i32 0, i32 %index + %Result = trunc i32 %Z to i17 + store i17 %Result, i17* %P + ret void + } + + define i32 %main(i32 %argc, i8** %argc) { + %i = bitcast i32 0 to i32 + call void %multiply(i32 %i, i32 -1, i32 255) + %P = getelementptr [20 x i17]* %ARRAY, i32 0, i32 0 + %X = load i17* %P + %result = sext i17 %X to i32 + %fmt = getelementptr [4 x i8]* %FORMAT, i32 0, i32 0 + call i32 (i8*,...)* %printf(i8* %fmt, i32 %result) + ret i32 %result + } + ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits