1 ; RUN: llc -o - %s -mtriple=aarch64-windows -aarch64-enable-compress-jump-tables=0 | FileCheck %s
2 ; RUN: llc -o - %s -mtriple=aarch64-windows -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: .p2align 2
41 ; CHECK-NEXT: .LJTI0_0:
42 ; CHECK: .word .LBB0_2-.LJTI0_0
43 ; CHECK: .word .LBB0_3-.LJTI0_0
44 ; CHECK: .word .LBB0_4-.LJTI0_0
45 ; CHECK: .word .LBB0_5-.LJTI0_0
46 ; CHECK: .section .xdata,"dr"
47 ; CHECK: .seh_handlerdata
51 ; Check that we can emit an object file with correct unwind info.
52 ; UNWIND: FunctionLength: {{[1-9][0-9]*}}