diff options
author | Stephen Hines <srhines@google.com> | 2014-12-01 14:51:49 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-12-02 16:08:10 -0800 |
commit | 37ed9c199ca639565f6ce88105f9e39e898d82d0 (patch) | |
tree | 8fb36d3910e3ee4c4e1b7422f4f017108efc52f5 /test/Instrumentation/DataFlowSanitizer/load.ll | |
parent | d2327b22152ced7bc46dc629fc908959e8a52d03 (diff) | |
download | external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.zip external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.tar.gz external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.tar.bz2 |
Update aosp/master LLVM for rebase to r222494.
Change-Id: Ic787f5e0124df789bd26f3f24680f45e678eef2d
Diffstat (limited to 'test/Instrumentation/DataFlowSanitizer/load.ll')
-rw-r--r-- | test/Instrumentation/DataFlowSanitizer/load.ll | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/Instrumentation/DataFlowSanitizer/load.ll b/test/Instrumentation/DataFlowSanitizer/load.ll index 6cd5151..8324224 100644 --- a/test/Instrumentation/DataFlowSanitizer/load.ll +++ b/test/Instrumentation/DataFlowSanitizer/load.ll @@ -2,6 +2,18 @@ ; RUN: opt < %s -dfsan -dfsan-combine-pointer-labels-on-load=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" +define {} @load0({}* %p) { + ; COMBINE_PTR_LABEL: @"dfs$load0" + ; COMBINE_PTR_LABEL: load + ; COMBINE_PTR_LABEL-NOT: load + + ; NO_COMBINE_PTR_LABEL: @"dfs$load0" + ; NO_COMBINE_PTR_LABEL: load + ; NO_COMBINE_PTR_LABEL-NOT: load + %a = load {}* %p + ret {} %a +} + define i8 @load8(i8* %p) { ; COMBINE_PTR_LABEL: @"dfs$load8" ; COMBINE_PTR_LABEL: load i16* @@ -152,4 +164,4 @@ define i64 @load64(i64* %p) { %a = load i64* %p ret i64 %a -}
\ No newline at end of file +} |