1 ; RUN: llc < %s -mtriple=aarch64 -mattr=+mte | FileCheck %s
3 declare void @use32(ptr)
5 define void @WithUnwind() sanitize_memtag {
7 ; CHECK-LABEL: WithUnwind:
8 ; CHECK: .cfi_mte_tagged_frame
10 %x = alloca i32, align 4
11 call void @use32(ptr %x)
15 define void @NoUnwind() sanitize_memtag nounwind {
17 ; CHECK-LABEL: NoUnwind:
18 ; CHECK-NOT: .cfi_mte_tagged_frame
20 %x = alloca i32, align 4
21 call void @use32(ptr %x)
25 define void @NoUnwindUwTable() sanitize_memtag nounwind uwtable {
27 ; CHECK-LABEL: NoUnwindUwTable:
28 ; CHECK: .cfi_mte_tagged_frame
30 %x = alloca i32, align 4
31 call void @use32(ptr %x)
35 define void @NoMemtag() {
37 ; CHECK-LABEL: NoMemtag:
38 ; CHECK-NOT: .cfi_mte_tagged_frame
40 %x = alloca i32, align 4
41 call void @use32(ptr %x)