1 ; RUN: llc -o - %s -mtriple=aarch64-windows -aarch64-min-jump-table-entries=4 -aarch64-enable-compress-jump-tables=0 | FileCheck %s
2 ; RUN: llc -o - %s -mtriple=aarch64-windows -aarch64-min-jump-table-entries=4 -aarch64-enable-compress-jump-tables=0 -filetype=obj | llvm-readobj --unwind - | FileCheck %s -check-prefix=UNWIND
4 define void @f(i32 %x) {
6 switch i32 %x, label %sw.epilog [
14 tail call void @g(i32 0, i32 4)
18 tail call void @g(i32 1, i32 5)
22 tail call void @g(i32 2, i32 6)
26 tail call void @g(i32 3, i32 7)
30 tail call void @g(i32 10, i32 8)
34 declare void @g(i32, i32)
40 ; CHECK-NEXT: .seh_endfunclet
41 ; CHECK-NEXT: .section .rdata,"dr"
42 ; CHECK-NEXT: .p2align 2
43 ; CHECK-NEXT: .LJTI0_0:
44 ; CHECK: .word .LBB0_2-.Ltmp0
45 ; CHECK: .word .LBB0_5-.Ltmp0
46 ; CHECK: .word .LBB0_3-.Ltmp0
47 ; CHECK: .word .LBB0_4-.Ltmp0
51 ; Check that we can emit an object file with correct unwind info.
52 ; UNWIND: FunctionLength: {{[1-9][0-9]*}}