[llvm] r263573 - [MIR] Add a test case for the diagnostic of a wrongly typed generic instruction

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 15 11:31:29 PDT 2016


Author: qcolombet
Date: Tue Mar 15 13:31:29 2016
New Revision: 263573

URL: http://llvm.org/viewvc/llvm-project?rev=263573&view=rev
Log:
[MIR] Add a test case for the diagnostic of a wrongly typed generic instruction

Added:
    llvm/trunk/test/CodeGen/MIR/X86/generic-instr-type-error.mir

Added: llvm/trunk/test/CodeGen/MIR/X86/generic-instr-type-error.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/MIR/X86/generic-instr-type-error.mir?rev=263573&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/MIR/X86/generic-instr-type-error.mir (added)
+++ llvm/trunk/test/CodeGen/MIR/X86/generic-instr-type-error.mir Tue Mar 15 13:31:29 2016
@@ -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
+...




More information about the llvm-commits mailing list