summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-03-15 18:31:29 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-03-15 18:31:29 +0000
commitfdc838e97fc96eaa4d456390d9adea1c0b76f2ad (patch)
tree635901aad11436cac127921d65f1fd7a5f0aad35
parenta3f2abad55c4ab448487f7d2fc98d91101e09c7e (diff)
downloadbcm5719-llvm-fdc838e97fc96eaa4d456390d9adea1c0b76f2ad.tar.gz
bcm5719-llvm-fdc838e97fc96eaa4d456390d9adea1c0b76f2ad.zip
[MIR] Add a test case for the diagnostic of a wrongly typed generic instruction
llvm-svn: 263573
-rw-r--r--llvm/test/CodeGen/MIR/X86/generic-instr-type-error.mir15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/generic-instr-type-error.mir b/llvm/test/CodeGen/MIR/X86/generic-instr-type-error.mir
new file mode 100644
index 00000000000..0abf2adcd9a
--- /dev/null
+++ b/llvm/test/CodeGen/MIR/X86/generic-instr-type-error.mir
@@ -0,0 +1,15 @@
+# RUN: not llc -march=x86-64 -start-after machine-sink -stop-after machine-sink -o /dev/null %s 2>&1 | FileCheck %s
+# This test ensures that the MIR parser report an error for
+# opaque types used on generic instruction.
+
+---
+name: bar
+isSSA: true
+registers:
+ - { id: 0, class: gr32 }
+body: |
+ bb.0.entry:
+ liveins: %edi
+ ; CHECK: [[@LINE+1]]:20: expected a sized type
+ %0(32) = G_ADD %opaque %edi, %edi
+...
OpenPOWER on IntegriCloud