diff options
Diffstat (limited to 'test/Instrumentation/DataFlowSanitizer/store.ll')
-rw-r--r-- | test/Instrumentation/DataFlowSanitizer/store.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Instrumentation/DataFlowSanitizer/store.ll b/test/Instrumentation/DataFlowSanitizer/store.ll index 8060537f3152..365b62d9e107 100644 --- a/test/Instrumentation/DataFlowSanitizer/store.ll +++ b/test/Instrumentation/DataFlowSanitizer/store.ll @@ -1,6 +1,20 @@ ; RUN: opt < %s -dfsan -dfsan-combine-pointer-labels-on-store=1 -S | FileCheck %s --check-prefix=COMBINE_PTR_LABEL ; RUN: opt < %s -dfsan -dfsan-combine-pointer-labels-on-store=0 -S | FileCheck %s --check-prefix=NO_COMBINE_PTR_LABEL target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" +target triple = "x86_64-unknown-linux-gnu" + +define void @store0({} %v, {}* %p) { + ; COMBINE_PTR_LABEL: @"dfs$store0" + ; COMBINE_PTR_LABEL: store + ; COMBINE_PTR_LABEL-NOT: store + + ; NO_COMBINE_PTR_LABEL: @"dfs$store0" + ; NO_COMBINE_PTR_LABEL: store + ; NO_COMBINE_PTR_LABEL-NOT: store + + store {} %v, {}* %p + ret void +} define void @store8(i8 %v, i8* %p) { ; NO_COMBINE_PTR_LABEL: @"dfs$store8" |