1 ; RUN: llc -mtriple=thumbv6m-none-eabi < %s | FileCheck %s
3 ; CHECK-LABEL: .globl nosan
4 ; CHECK-NEXT: .p2align 1
5 ; CHECK-NEXT: .type nosan,%function
7 ; CHECK-NEXT: .thumb_func
9 define dso_local void @nosan() nounwind {
13 ;; The alignment is at least 4 to avoid unaligned type hash loads when this
14 ;; instrumented function is indirectly called.
15 ; CHECK-LABEL: .globl foo
16 ; CHECK-NEXT: .p2align 2
17 ; CHECK-NEXT: .type foo,%function
18 ; CHECK-NEXT: .long 3238382334
19 ; CHECK-NEXT: .long 3170468932
20 ; CHECK-NEXT: .code 16
21 ; CHECK-NEXT: .thumb_func
23 define dso_local void @foo() nounwind !func_sanitize !0 {
27 ;; If "align" is smaller than 4 (required alignment from !func_sanitize), use 4.
28 ; CHECK-LABEL: .globl align2
29 ; CHECK-NEXT: .p2align 2
30 define dso_local void @align2() nounwind align 2 !func_sanitize !0 {
34 ;; If "align" is larger than 4, use its value.
35 ; CHECK-LABEL: .globl align8
36 ; CHECK-NEXT: .p2align 3
37 define dso_local void @align8() nounwind align 8 !func_sanitize !0 {
41 !0 = !{i32 -1056584962, i32 -1124498364}