brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 2d3e7b6 Raw
46 lines · plain
1; RUN: llc -mtriple=x86_64-apple-darwin10 -O0 < %s | FileCheck %s2 3; test that we print a label that we use. We had a bug where4; we would print the jump, but not the label because it was considered5; a fall through.6 7; CHECK:        jmp     LBB0_98; CHECK: LBB0_9:                                 ## %cleanup9 10; RUN: llc -filetype=obj -mtriple=x86_64 -O0 -save-temp-labels < %s | llvm-objdump -d - | FileCheck %s --check-prefix=SAVETEMP11 12; SAVETEMP:         jne {{.*}} <.LBB0_1>13; SAVETEMP-LABEL: <.LBB0_1>:14 15define void @foo(i1 %arg, i32 %arg2)  {16entry:17  br i1 %arg, label %land.lhs.true, label %if.end1118 19land.lhs.true:                                    ; preds = %entry20  br i1 %arg, label %if.then, label %if.end1121 22if.then:                                          ; preds = %land.lhs.true23  br i1 %arg, label %if.then9, label %if.end24 25if.then9:                                         ; preds = %if.then26  br label %cleanup27 28if.end:                                           ; preds = %if.then29  br label %cleanup30 31cleanup:                                          ; preds = %if.end, %if.then932  switch i32 %arg2, label %default [33    i32 0, label %cleanup.cont34    i32 1, label %if.end1135  ]36 37cleanup.cont:                                     ; preds = %cleanup38  br label %if.end1139 40if.end11:                                         ; preds = %cleanup.cont, %cleanup, %land.lhs.true, %entry41  ret void42 43default:                                          ; preds = %cleanup44  br label %if.end1145}46