[llvm] 325f0ec - [HWASan] Improve dbg-value-tag-offset test.
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 16 11:00:39 PST 2022
Author: Florian Mayer
Date: 2022-02-16T11:00:00-08:00
New Revision: 325f0ec7c62ec90d190c65bd4c1738e79f2b8c91
URL: https://github.com/llvm/llvm-project/commit/325f0ec7c62ec90d190c65bd4c1738e79f2b8c91
DIFF: https://github.com/llvm/llvm-project/commit/325f0ec7c62ec90d190c65bd4c1738e79f2b8c91.diff
LOG: [HWASan] Improve dbg-value-tag-offset test.
Reviewed By: hctim
Differential Revision: https://reviews.llvm.org/D119961
Added:
Modified:
llvm/test/Instrumentation/HWAddressSanitizer/dbg-value-tag-offset.ll
Removed:
################################################################################
diff --git a/llvm/test/Instrumentation/HWAddressSanitizer/dbg-value-tag-offset.ll b/llvm/test/Instrumentation/HWAddressSanitizer/dbg-value-tag-offset.ll
index fa0bad19e8e5c..609783b44df89 100644
--- a/llvm/test/Instrumentation/HWAddressSanitizer/dbg-value-tag-offset.ll
+++ b/llvm/test/Instrumentation/HWAddressSanitizer/dbg-value-tag-offset.ll
@@ -4,19 +4,21 @@ target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-android24"
define dso_local void @f() sanitize_hwaddress !dbg !14 {
- %1 = alloca i32, align 4
- %2 = alloca i32, align 4
- %3 = bitcast i32* %1 to i8*, !dbg !21
- %4 = bitcast i32* %2 to i8*, !dbg !21
+ %a1 = alloca i32, align 4
+ %a2 = alloca i32, align 4
+ %1 = bitcast i32* %a1 to i8*, !dbg !21
+ %2 = bitcast i32* %a2 to i8*, !dbg !21
+; CHECK: {{[ ]*}}[[BITCASTa1:.*]] = bitcast { i32, [12 x i8] }* %a1 to i32*
+; CHECK: {{[ ]*}}[[BITCASTa2:.*]] = bitcast { i32, [12 x i8] }* %a2 to i32*
; CHECK: call void @llvm.dbg.value(metadata i32 1, {{.*}}, metadata !DIExpression())
call void @llvm.dbg.value(metadata i32 1, metadata !20, metadata !DIExpression()), !dbg !22
- store i32 1, i32* %2, align 4, !dbg !23, !tbaa !24
-; CHECK: call void @llvm.dbg.value(metadata i32* {{.*}}, metadata !DIExpression(DW_OP_LLVM_tag_offset, 0, DW_OP_deref))
- call void @llvm.dbg.value(metadata i32* %1, metadata !18, metadata !DIExpression(DW_OP_deref)), !dbg !22
- call void @use(i8* nonnull %3), !dbg !28
-; CHECK: call void @llvm.dbg.value(metadata i32* {{.*}}, metadata !DIExpression(DW_OP_LLVM_tag_offset, 128, DW_OP_deref))
- call void @llvm.dbg.value(metadata i32* %2, metadata !20, metadata !DIExpression(DW_OP_deref)), !dbg !22
- call void @use(i8* nonnull %4), !dbg !29
+ store i32 1, i32* %a2, align 4, !dbg !23, !tbaa !24
+; CHECK: call void @llvm.dbg.value(metadata i32* {{.*}}[[BITCASTa1]], {{.*}} metadata !DIExpression(DW_OP_LLVM_tag_offset, 0, DW_OP_deref))
+ call void @llvm.dbg.value(metadata i32* %a1, metadata !18, metadata !DIExpression(DW_OP_deref)), !dbg !22
+ call void @use(i8* nonnull %1), !dbg !28
+; CHECK: call void @llvm.dbg.value(metadata i32* {{.*}}[[BITCASTa2]], {{.*}} metadata !DIExpression(DW_OP_LLVM_tag_offset, 128, DW_OP_deref))
+ call void @llvm.dbg.value(metadata i32* %a2, metadata !20, metadata !DIExpression(DW_OP_deref)), !dbg !22
+ call void @use(i8* nonnull %2), !dbg !29
ret void, !dbg !30
}
More information about the llvm-commits
mailing list