forked from OSchip/llvm-project
[MIR] Add a test case for the diagnostic of a wrongly typed generic instruction
llvm-svn: 263573
This commit is contained in:
parent
a3f2abad55
commit
fdc838e97f
|
@ -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
|
||||
...
|
Loading…
Reference in New Issue