mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Test cases for PR1117.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33281 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7af9a13f3a
commit
889cf0ec51
8
test/Assembler/2007-01-16-CrashOnBadCast.ll
Normal file
8
test/Assembler/2007-01-16-CrashOnBadCast.ll
Normal file
@ -0,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
|
||||
}
|
5
test/Assembler/2007-01-16-CrashOnBadCast2.ll
Normal file
5
test/Assembler/2007-01-16-CrashOnBadCast2.ll
Normal file
@ -0,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*)
|
Loading…
x
Reference in New Issue
Block a user