Skip to content

Commit 1195790

Browse files
committed
Prune llvm/test/CodeGen/AArch64/hwasan-zero-ptr.ll
1 parent 46ce784 commit 1195790

File tree

1 file changed

+6
-58
lines changed

1 file changed

+6
-58
lines changed

llvm/test/CodeGen/AArch64/hwasan-zero-ptr.ll

Lines changed: 6 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ entry:
4646
ret void
4747
}
4848

49+
; Function Attrs: nounwind
50+
declare void @llvm.hwasan.check.memaccess.shortgranules.fixedshadow(ptr, i32 immarg, i64 immarg) #1
51+
52+
attributes #0 = { sanitize_hwaddress }
53+
attributes #1 = { nounwind }
54+
4955
declare void @__hwasan_init()
5056

5157
; Function Attrs: nounwind
@@ -66,64 +72,6 @@ declare void @_Unwind_GetGR()
6672

6773
declare void @_Unwind_GetCFA()
6874

69-
define linkonce_odr hidden i32 @__hwasan_personality_thunk(i32 %0, i32 %1, i64 %2, ptr %3, ptr %4) comdat {
70-
; CHECK-LABEL: __hwasan_personality_thunk:
71-
; CHECK: // %bb.0: // %entry
72-
; CHECK-NEXT: adrp x6, :got:_Unwind_GetGR
73-
; CHECK-NEXT: adrp x7, :got:_Unwind_GetCFA
74-
; CHECK-NEXT: mov x5, xzr
75-
; CHECK-NEXT: ldr x6, [x6, :got_lo12:_Unwind_GetGR]
76-
; CHECK-NEXT: ldr x7, [x7, :got_lo12:_Unwind_GetCFA]
77-
; CHECK-NEXT: b __hwasan_personality_wrapper
78-
entry:
79-
%5 = tail call i32 @__hwasan_personality_wrapper(i32 %0, i32 %1, i64 %2, ptr %3, ptr %4, ptr null, ptr @_Unwind_GetGR, ptr @_Unwind_GetCFA)
80-
ret i32 %5
81-
}
82-
83-
declare void @__hwasan_loadN(i64, i64)
84-
85-
declare void @__hwasan_load1(i64)
86-
87-
declare void @__hwasan_load2(i64)
88-
89-
declare void @__hwasan_load4(i64)
90-
91-
declare void @__hwasan_load8(i64)
92-
93-
declare void @__hwasan_load16(i64)
94-
95-
declare void @__hwasan_storeN(i64, i64)
96-
97-
declare void @__hwasan_store1(i64)
98-
99-
declare void @__hwasan_store2(i64)
100-
101-
declare void @__hwasan_store4(i64)
102-
103-
declare void @__hwasan_store8(i64)
104-
105-
declare void @__hwasan_store16(i64)
106-
107-
declare ptr @__hwasan_memmove(ptr, ptr, i64)
108-
109-
declare ptr @__hwasan_memcpy(ptr, ptr, i64)
110-
111-
declare ptr @__hwasan_memset(ptr, i32, i64)
112-
113-
declare void @__hwasan_tag_memory(ptr, i8, i64)
114-
115-
declare i8 @__hwasan_generate_tag()
116-
117-
declare void @__hwasan_add_frame_record(i64)
118-
119-
declare void @__hwasan_handle_vfork(i64)
120-
121-
; Function Attrs: nounwind
122-
declare void @llvm.hwasan.check.memaccess.shortgranules.fixedshadow(ptr, i32 immarg, i64 immarg) #1
123-
124-
attributes #0 = { sanitize_hwaddress }
125-
attributes #1 = { nounwind }
126-
12775
!llvm.module.flags = !{!1}
12876

12977
!0 = !{ptr @hwasan.note}

0 commit comments

Comments
 (0)