blob: 54d8e41064a2ba3849873ee866fd21b9c86c224f [file] [log] [blame]
Alex Lorenz5672a892015-08-05 22:26:15 +00001# 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---
16name: inc
17body:
18 - id: 0
19 name: entry
20 instructions:
21 # CHECK: [[@LINE+1]]:42: expected 64-bit integer (too large)
22 - '%rax = MOV64rm %rip, 1, _, @G + 123456789123456789123456789, _'
23 - '%eax = MOV32rm %rax, 1, _, 0, _'
24 - '%eax = INC32r %eax implicit-def %eflags'
25 - 'RETQ %eax'
26...