Matthias Braun | 538859c | 2016-07-16 02:24:59 +0000 | [diff] [blame] | 1 | # RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s |
Alex Lorenz | 5672a89 | 2015-08-05 22:26:15 +0000 | [diff] [blame] | 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 |
Alex Lorenz | 5022f6b | 2015-08-13 23:10:16 +0000 | [diff] [blame] | 17 | body: | |
| 18 | bb.0.entry: |
| 19 | ; CHECK: [[@LINE+1]]:37: expected 64-bit integer (too large) |
Puyan Lotfi | 43e94b1 | 2018-01-31 22:04:26 +0000 | [diff] [blame] | 20 | $rax = MOV64rm $rip, 1, _, @G + 123456789123456789123456789, _ |
| 21 | $eax = MOV32rm $rax, 1, _, 0, _ |
| 22 | $eax = INC32r $eax implicit-def $eflags |
| 23 | RETQ $eax |
Alex Lorenz | 5672a89 | 2015-08-05 22:26:15 +0000 | [diff] [blame] | 24 | ... |