1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -O0 -fast-isel=false -mtriple=i686-- < %s | FileCheck %s
4 ; No need for branching when the default and only destination follows
5 ; immediately after the switch.
6 define void @no_branch(i32 %x) {
7 ; CHECK-LABEL: no_branch:
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
10 ; CHECK-NEXT: # %bb.1: # %exit
13 switch i32 %x, label %exit [ ]