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

llvm-svn: 263573
This commit is contained in:
Quentin Colombet 2016-03-15 18:31:29 +00:00
parent a3f2abad55
commit fdc838e97f
1 changed files with 15 additions and 0 deletions

View File

@ -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
...