17 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -O0 -fast-isel=false -mtriple=i686-- < %s | FileCheck %s3 4; No need for branching when the default and only destination follows5; immediately after the switch.6define void @no_branch(i32 %x) {7; CHECK-LABEL: no_branch:8; CHECK: # %bb.0: # %entry9; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax10; CHECK-NEXT: # %bb.1: # %exit11; CHECK-NEXT: retl12entry:13 switch i32 %x, label %exit [ ]14exit:15 ret void16}17