annotate llvm/test/Instrumentation/AddressSanitizer/do-not-instrument-sanitizers.ll @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; This test checks that we are not instrumenting sanitizer code.
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
2 ; RUN: opt < %s -asan -asan-module -enable-new-pm=0 -S | FileCheck %s
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
3 ; RUN: opt < %s -passes='asan-pipeline' -S | FileCheck %s
150
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
anatofuz
parents:
diff changeset
6 target triple = "x86_64-unknown-linux-gnu"
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 ; Function Attrs: nounwind uwtable
anatofuz
parents:
diff changeset
9 define void @__asan_default_options(i32* %a) sanitize_address {
anatofuz
parents:
diff changeset
10 entry:
anatofuz
parents:
diff changeset
11 %tmp1 = load i32, i32* %a, align 4
anatofuz
parents:
diff changeset
12 %tmp2 = add i32 %tmp1, 1
anatofuz
parents:
diff changeset
13 store i32 %tmp2, i32* %a, align 4
anatofuz
parents:
diff changeset
14 ret void
anatofuz
parents:
diff changeset
15 }
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 ; CHECK-NOT: call void @__asan_report_load
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 ; Function Attrs: nounwind uwtable
anatofuz
parents:
diff changeset
20 define i32 @main() #0 {
anatofuz
parents:
diff changeset
21 entry:
anatofuz
parents:
diff changeset
22 ret i32 0
anatofuz
parents:
diff changeset
23 }
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 ; CHECK: declare void @__asan_init()