brintos

brintos / llvm-project-archived public Read only

0
0
Text · 694 B · bc11ee3 Raw
37 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 machine basic3# block index is used.4 5 6--- |7 8  define i32 @foo(ptr %p) {9  entry:10    %a = load i32, ptr %p11    %b = icmp sle i32 %a, 1012    br i1 %b, label %0, label %113 14  ; <label>:015    ret i32 016 17  ; <label>:118    ret i32 %a19  }20 21...22---23name:            foo24body: |25  bb.0.entry:26    $eax = MOV32rm $rdi, 1, _, 0, _27    CMP32ri8 $eax, 10, implicit-def $eflags28    ; CHECK: [[@LINE+1]]:11: use of undefined machine basic block #429    JCC_1 %bb.4, 15, implicit $eflags30 31  bb.1:32    $eax = MOV32r0 implicit-def $eflags33 34  bb.2:35    RET64 $eax36...37