mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
15 lines
315 B
LLVM
15 lines
315 B
LLVM
|
; RUN: llc -O0 -fast-isel=false -march=x86 < %s | FileCheck %s
|
||
|
|
||
|
; No need for branching when the default and only destination follows
|
||
|
; immediately after the switch.
|
||
|
; CHECK-LABEL: no_branch:
|
||
|
; CHECK-NOT: jmp
|
||
|
; CHECK: ret
|
||
|
|
||
|
define void @no_branch(i32 %x) {
|
||
|
entry:
|
||
|
switch i32 %x, label %exit [ ]
|
||
|
exit:
|
||
|
ret void
|
||
|
}
|