blob: 0c0f5d87b2e5a6c8131c52b5e0dca96b1fe69127 [file] [log] [blame]
Matthias Braun538859c2016-07-16 02:24:59 +00001# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
Alex Lorenz5672a892015-08-05 22:26:15 +00002
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
Alex Lorenz5022f6b2015-08-13 23:10:16 +000017body: |
18 bb.0.entry:
19 ; CHECK: [[@LINE+1]]:37: expected 64-bit integer (too large)
Puyan Lotfi43e94b12018-01-31 22:04:26 +000020 $rax = MOV64rm $rip, 1, _, @G + 123456789123456789123456789, _
21 $eax = MOV32rm $rax, 1, _, 0, _
22 $eax = INC32r $eax implicit-def $eflags
23 RETQ $eax
Alex Lorenz5672a892015-08-05 22:26:15 +000024...