brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 27f9424 Raw
48 lines · plain
1# RUN: llc -run-pass=mir-debugify,mir-check-debugify -o - %s 2>&1 | FileCheck %s2 3# CHECK: Machine IR debug info check: PASS4# CHECK-NOT: Assertion `Var <= NumVars && "Unexpected name for DILocalVariable"'5 6--- |7  define i32 @foo(i32 %a0, i32 %a1, i32 %a2, i32 %a3) {8    %t0 = add i32 %a0, %a19    %t1 = add i32 %t0, %a210    %t2 = add i32 %t1, %a311    ret i32 %t212  }13 14  define i32 @bar(i32 %a0, i32 %a1, i32 %a2, i32 %a3) {15    %t0 = add i32 %a0, %a116    %t1 = add i32 %a2, %t017    %t2 = add i32 %t1, %a318    ret i32 %t219  }20 21...22---23name:            foo24body:             |25  bb.1 (%ir-block.0):26    %0:_(s32) = IMPLICIT_DEF27    %1:_(s32) = IMPLICIT_DEF28    %2:_(s32) = IMPLICIT_DEF29    %3:_(s32) = IMPLICIT_DEF30    %4:_(s32) = G_ADD %0, %131    %5:_(s32) = G_ADD %4, %232    %6:_(s32) = G_ADD %5, %333 34...35---36name:            bar37body:             |38  bb.1 (%ir-block.0):39    %0:_(s32) = IMPLICIT_DEF40    %1:_(s32) = IMPLICIT_DEF41    %2:_(s32) = IMPLICIT_DEF42    %3:_(s32) = IMPLICIT_DEF43    %4:_(s32) = G_ADD %0, %144    %5:_(s32) = G_ADD %2, %445    %6:_(s32) = G_ADD %5, %346 47...48