diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2018-01-13 01:32:15 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2018-01-13 01:32:15 +0000 |
| commit | 080e0d40b912bf2a389c5a615ed1429ab330adee (patch) | |
| tree | d07bc66e72cb593c1fe20115287f8aa131bcc64e /llvm/test | |
| parent | c2b340a5c625b495d5311b02f15cf124dc7ed835 (diff) | |
| download | bcm5719-llvm-080e0d40b912bf2a389c5a615ed1429ab330adee.tar.gz bcm5719-llvm-080e0d40b912bf2a389c5a615ed1429ab330adee.zip | |
[hwasan] An LLVM flag to disable stack tag randomization.
Summary: Necessary to achieve consistent test results.
Reviewers: kcc, alekseyshl
Subscribers: kubamracek, llvm-commits, hiraditya
Differential Revision: https://reviews.llvm.org/D42023
llvm-svn: 322429
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Instrumentation/HWAddressSanitizer/alloca.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Instrumentation/HWAddressSanitizer/alloca.ll b/llvm/test/Instrumentation/HWAddressSanitizer/alloca.ll index db93d4fa4ed..6dd894b8a3b 100644 --- a/llvm/test/Instrumentation/HWAddressSanitizer/alloca.ll +++ b/llvm/test/Instrumentation/HWAddressSanitizer/alloca.ll @@ -1,6 +1,7 @@ ; Test basic address sanitizer instrumentation. ; ; RUN: opt < %s -hwasan -S | FileCheck %s +; RUN: opt < %s -hwasan -hwasan-generate-tags-with-calls -S | FileCheck %s --check-prefix=WITH-CALLS target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" target triple = "aarch64--linux-android" @@ -43,3 +44,9 @@ entry: ret void } +; WITH-CALLS-LABEL: @test_alloca( +; WITH-CALLS: %[[T1:[^ ]*]] = call i8 @__hwasan_generate_tag() +; WITH-CALLS: %[[A:[^ ]*]] = zext i8 %[[T1]] to i64 +; WITH-CALLS: %[[B:[^ ]*]] = ptrtoint i32* %x to i64 +; WITH-CALLS: %[[C:[^ ]*]] = shl i64 %[[A]], 56 +; WITH-CALLS: or i64 %[[B]], %[[C]] |

