54 lines · plain
1; RUN: llc < %s -mtriple=powerpc64le-unknown-unknown -mcpu=pwr8 \2; RUN: -verify-machineinstrs | FileCheck %s3declare void @free()4 5define dso_local fastcc void @test2() {6; CHECK-LABEL: test27entry:8 switch i16 undef, label %sw.default [9 i16 10, label %sw.bb5210 i16 134, label %sw.bb5411 ]12 13sw.default: ; preds = %entry14 unreachable15 16 17sw.bb52: ; preds = %entry, %entry, %entry, %entry, %entry, %entry18 br i1 undef, label %if.then14.i, label %sw.epilog.i64219 20if.then14.i: ; preds = %sw.bb5221 %call39.i = call i64 @test() #322 %and.i126.i = and i64 %call39.i, 123 br i1 undef, label %dummy.exit.i, label %if.then.i.i.i63624 25if.then.i.i.i636: ; preds = %if.then14.i26 %0 = load ptr, ptr undef, align 827 call void @free() #328 br label %dummy.exit.i29 30dummy.exit.i: ; preds = %if.then.i.i.i636, %if.then14.i31; CHECK: # %dummy.exit.i32; CHECK-NEXT: andi.33; CHECK-NEXT: bc 1234 %cond82.i = icmp eq i64 %and.i126.i, 035 br i1 %cond82.i, label %if.end50.i, label %dummy.exit36 37if.end50.i: ; preds = %dummy.exit.i38 unreachable39 40sw.epilog.i642: ; preds = %sw.bb5241 unreachable42 43dummy.exit: ; preds = %dummy.exit.i44 unreachable45 46sw.bb54: ; preds = %entry, %entry47 call fastcc void @test3()48 unreachable49}50 51declare dso_local fastcc void @test3()52 53declare i64 @test()54