38 lines · plain
1; RUN: llc -mtriple=x86_64-apple-darwin11 < %s | FileCheck %s2 3; Check that the cases which lead to unreachable are checked after "10"4 5define void @test1(i32 %x) nounwind uwtable ssp {6entry:7 switch i32 %x, label %if.end7 [8 i32 0, label %if.then9 i32 10, label %if.then210 i32 20, label %if.then511 ]12 13; CHECK-LABEL: test1:14; CHECK-NOT: unr15; CHECK: cmpl $1016; CHECK: cmpl $2017; CHECK: bar18 19if.then:20 tail call void @unr(i32 23) noreturn nounwind21 unreachable22 23if.then2:24 tail call void @bar(i32 42) nounwind25 br label %if.end726 27if.then5:28 tail call void @unr(i32 5) noreturn nounwind29 unreachable30 31if.end7:32 ret void33}34 35declare void @unr(i32) noreturn36 37declare void @bar(i32)38