blob: 360ace5b787f6d1b5bac699559c6e18a8c25aed5 [file] [log] [blame]
Hans Wennborg6c42d1a2014-11-29 21:17:05 +00001; RUN: llc -O0 -fast-isel=false -march=x86 < %s | FileCheck %s
2
3; No need for branching when the default and only destination follows
4; immediately after the switch.
5; CHECK-LABEL: no_branch:
6; CHECK-NOT: jmp
7; CHECK: ret
8
9define void @no_branch(i32 %x) {
10entry:
11 switch i32 %x, label %exit [ ]
12exit:
13 ret void
14}