diff options
Diffstat (limited to 'test/Assembler/invalid_cast.ll')
-rw-r--r-- | test/Assembler/invalid_cast.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Assembler/invalid_cast.ll b/test/Assembler/invalid_cast.ll new file mode 100644 index 0000000..c5b082b --- /dev/null +++ b/test/Assembler/invalid_cast.ll @@ -0,0 +1,6 @@ +; RUN: not llvm-as < %s |& grep {invalid cast opcode} + +define <3 x i8> @foo(<4 x i64> %x) { + %y = trunc <4 x i64> %x to <3 x i8> + ret <3 x i8> %y +} |