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