2016-07-16 10:24:59 +08:00
|
|
|
# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
|
2015-07-25 01:44:49 +08:00
|
|
|
# This test ensures that the MIR parser runs the machine verifier after parsing.
|
|
|
|
|
|
|
|
--- |
|
|
|
|
|
|
|
|
define i32 @inc(i32 %a) {
|
|
|
|
entry:
|
|
|
|
ret i32 %a
|
|
|
|
}
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: inc
|
2015-08-14 07:10:16 +08:00
|
|
|
body: |
|
|
|
|
bb.0.entry:
|
|
|
|
liveins: %edi
|
|
|
|
; CHECK: *** Bad machine code: Too few operands ***
|
2015-11-10 07:59:29 +08:00
|
|
|
; CHECK: instruction: COPY
|
|
|
|
; CHECK: 2 operands expected, but 0 given.
|
2015-08-14 07:10:16 +08:00
|
|
|
COPY
|
|
|
|
RETQ
|
2015-07-25 01:44:49 +08:00
|
|
|
...
|