brintos

brintos / llvm-project-archived public Read only

0
0
Text · 529 B · 1f568eb Raw
27 lines · plain
1# RUN: not llc -mtriple=x86_64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s2# This test ensures that an error is reported when an invalid global value index3# is used.4 5--- |6 7  @0 = external global i328 9  define i32 @inc() {10  entry:11    %a = load i32, ptr @012    %b = add i32 %a, 113    ret i32 %b14  }15 16...17---18name: inc19body: |20  bb.0.entry:21    ; CHECK: [[@LINE+1]]:32: use of undefined global value '@2'22    $rax = MOV64rm $rip, 1, _, @2, _23    $eax = MOV32rm $rax, 1, _, 0, _24    $eax = INC32r $eax25    RET64 $eax26...27