[llvm-commits] CVS: llvm/test/Regression/Assembler/2007-01-16-CrashOnBadCast.ll 2007-01-16-CrashOnBadCast2.ll
Reid Spencer
reid at x10sys.com
Tue Jan 16 18:45:35 PST 2007
Changes in directory llvm/test/Regression/Assembler:
2007-01-16-CrashOnBadCast.ll added (r1.1)
2007-01-16-CrashOnBadCast2.ll added (r1.1)
---
Log message:
Test cases for PR1117: http://llvm.org/PR1117 .
---
Diffs of the changes: (+13 -0)
2007-01-16-CrashOnBadCast.ll | 8 ++++++++
2007-01-16-CrashOnBadCast2.ll | 5 +++++
2 files changed, 13 insertions(+)
Index: llvm/test/Regression/Assembler/2007-01-16-CrashOnBadCast.ll
diff -c /dev/null llvm/test/Regression/Assembler/2007-01-16-CrashOnBadCast.ll:1.1
*** /dev/null Tue Jan 16 20:45:29 2007
--- llvm/test/Regression/Assembler/2007-01-16-CrashOnBadCast.ll Tue Jan 16 20:45:19 2007
***************
*** 0 ****
--- 1,8 ----
+ ; PR1117
+ ; RUN: llvm-as < %s 2>&1 > /dev/null | \
+ ; RUN: grep "invalid cast opcode for cast from"
+
+ define i8* %nada(i64 %X) {
+ %result = trunc i64 %X to i8*
+ ret i8* %result
+ }
Index: llvm/test/Regression/Assembler/2007-01-16-CrashOnBadCast2.ll
diff -c /dev/null llvm/test/Regression/Assembler/2007-01-16-CrashOnBadCast2.ll:1.1
*** /dev/null Tue Jan 16 20:45:35 2007
--- llvm/test/Regression/Assembler/2007-01-16-CrashOnBadCast2.ll Tue Jan 16 20:45:19 2007
***************
*** 0 ****
--- 1,5 ----
+ ; PR1117
+ ; RUN: llvm-as < %s 2>&1 > /dev/null | \
+ ; RUN: grep "invalid cast opcode for cast from"
+
+ %X = constant i8* trunc (i64 0 to i8*)
More information about the llvm-commits
mailing list