[clang] Enable ASAN in amdgpu toolchain for OpenCL (PR #96262)

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 21 13:12:50 PDT 2024


================
@@ -169,6 +180,11 @@
 // COMMON-UNSAFE-MATH-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_finite_only_off.bc"
 // COMMON-UNSAFE-MATH-SAME: "-mlink-builtin-bitcode" "{{.*}}/amdgcn/bitcode/oclc_correctly_rounded_sqrt_off.bc"
 
+// ASAN-SAME: "-fsanitize=address"
+
+// NOASAN-NOT: "-fsanitize=address"
+// NOASAN-NOT: amdgcn/bitcode/asanrtl.bc
----------------
yxsamliu wrote:

understood. that's why I single out the negative tests to a separate run line. since there is only negative check in this run, they do not depend on order. hopefully it will be stable

https://github.com/llvm/llvm-project/pull/96262


More information about the cfe-commits mailing list