1 ;; RUN: llc -verify-machineinstrs \
2 ;; RUN: -mtriple=armv7-linux-gnueabi -filetype=obj %s -o - | \
3 ;; RUN: llvm-readobj --symbols | FileCheck -check-prefix=ARM %s
5 ;; RUN: llc -verify-machineinstrs \
6 ;; RUN: -mtriple=thumbv7-linux-gnueabi -filetype=obj %s -o - | \
7 ;; RUN: llvm-readobj --symbols | FileCheck -check-prefix=TMB %s
9 ;; Ensure that if a jump table is generated that it has Mapping Symbols
10 ;; marking the data-in-code region.
12 define void @foo(i32* %ptr, i32 %b) nounwind ssp {
13 %tmp = load i32, i32* %ptr, align 4
14 switch i32 %tmp, label %exit [
21 store i32 %b, i32* %ptr, align 4
24 store i32 1, i32* %ptr, align 4
27 store i32 2, i32* %ptr, align 4
30 store i32 4, i32* %ptr, align 4
38 ;; ARM-NEXT: Value: 0x0
40 ;; ARM-NEXT: Binding: Local
41 ;; ARM-NEXT: Type: None
43 ;; ARM-NEXT: Section: [[MIXED_SECT:[^ ]+]]
47 ;; ARM-NEXT: Value: 0x{{[0-9A-F]+}}
49 ;; ARM-NEXT: Binding: Local
50 ;; ARM-NEXT: Type: None
52 ;; ARM-NEXT: Section: [[MIXED_SECT]]
56 ;; ARM-NEXT: Value: 0x{{[0-9A-F]+}}
58 ;; ARM-NEXT: Binding: Local
59 ;; ARM-NEXT: Type: None
61 ;; ARM-NEXT: Section: [[MIXED_SECT]]
63 ;; ARM-NOT: ${{[atd]}}
67 ;; TMB-NEXT: Value: 0x{{[0-9A-F]+}}
69 ;; TMB-NEXT: Binding: Local
70 ;; TMB-NEXT: Type: None
72 ;; TMB-NEXT: Section: [[MIXED_SECT:[^ ]+]]
76 ;; TMB-NEXT: Value: 0x0
78 ;; TMB-NEXT: Binding: Local
79 ;; TMB-NEXT: Type: None
81 ;; TMB-NEXT: Section: [[MIXED_SECT]]
85 ;; TMB-NEXT: Value: 0x{{[0-9A-F]+}}
87 ;; TMB-NEXT: Binding: Local
88 ;; TMB-NEXT: Type: None
90 ;; TMB-NEXT: Section: [[MIXED_SECT]]
93 ;; TMB-NOT: ${{[atd]}}