MIR Serialization: Change MIR syntax - use custom syntax for MBBs.
[oota-llvm.git] / test / CodeGen / MIR / X86 / register-operands-target-flag-error.mir
1 # RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2
3 --- |
4
5   @G = external global i32
6
7   define i32 @inc() {
8   entry:
9     %a = load i32, i32* @G
10     %b = add i32 %a, 1
11     ret i32 %b
12   }
13
14 ...
15 ---
16 name: inc
17 body: |
18   bb.0.entry:
19   ; CHECK: [[@LINE+1]]:42: register operands can't have target flags
20     %rax = MOV64rm target-flags(x86-got) %rip, 1, _, @G, _
21     %eax = MOV32rm killed %rax, 1, _, 0, _
22     %eax = INC32r killed %eax, implicit-def dead %eflags
23     RETQ %eax
24 ...