1 ; RUN: llc <%s -mtriple=arm-unknown-linux-gnueabi -jump-table-type=single | FileCheck --check-prefix=ARM %s
2 ; RUN: llc <%s -mtriple=thumb-unknown-linux-gnueabi -jump-table-type=single | FileCheck --check-prefix=THUMB %s
4 define void @indirect_fun() unnamed_addr jumptable {
7 define void ()* @get_fun() {
8 ret void ()* @indirect_fun
10 ; ARM: ldr r0, [[LABEL:.*]]
13 ; ARM: .long __llvm_jump_instr_table_0_1
15 ; THUMB: ldr r0, [[LABEL:.*]]
18 ; THUMB: .long __llvm_jump_instr_table_0_1
21 ; ARM: .globl __llvm_jump_instr_table_0_1
23 ; ARM: .type __llvm_jump_instr_table_0_1,%function
24 ; ARM: __llvm_jump_instr_table_0_1:
25 ; ARM: b indirect_fun(PLT)
27 ; THUMB: .globl __llvm_jump_instr_table_0_1
30 ; THUMB: .type __llvm_jump_instr_table_0_1,%function
31 ; THUMB: __llvm_jump_instr_table_0_1:
32 ; THUMB: b indirect_fun(PLT)