[PATCH] D103304: Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always).

Kevin Athey via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 1 17:26:57 PDT 2021


kda updated this revision to Diff 349143.
kda added a comment.

add test for global generation.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103304/new/

https://reviews.llvm.org/D103304

Files:
  llvm/test/Instrumentation/AddressSanitizer/fake-stack.ll


Index: llvm/test/Instrumentation/AddressSanitizer/fake-stack.ll
===================================================================
--- llvm/test/Instrumentation/AddressSanitizer/fake-stack.ll
+++ llvm/test/Instrumentation/AddressSanitizer/fake-stack.ll
@@ -5,6 +5,11 @@
 target datalayout = "e-i64:64-f80:128-s:64-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 
+; CHECK-LABEL: @__asan_use_after_return_mode =
+; NEVER-SAME: weak_odr constant i32 0
+; RUNTIME-SAME: weak_odr constant i32 1
+; ALWAYS-SAME: weak_odr constant i32 2
+
 declare void @Foo(i8*)
 
 define void @Empty() uwtable sanitize_address {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103304.349143.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210602/3e09134c/attachment.bin>


More information about the llvm-commits mailing list