brintos

brintos / llvm-project-archived public Read only

0
0
Text · 489 B · 1b0ebbc Raw
25 lines · plain
1# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s2 3--- |4 5  @G = external global i326 7  define i32 @inc() {8  entry:9    %a = load i32, ptr @G10    %b = add i32 %a, 111    ret i32 %b12  }13 14...15---16name: inc17body: |18  bb.0.entry:19    ; CHECK: [[@LINE+1]]:37: expected 64-bit integer (too large)20    $rax = MOV64rm $rip, 1, _, @G + 123456789123456789123456789, _21    $eax = MOV32rm $rax, 1, _, 0, _22    $eax = INC32r $eax implicit-def $eflags23    RET64 $eax24...25