|
1 | 1 | ; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S -hwasan-selective-instrumentation=1 \
|
2 |
| -; RUN: | FileCheck %s --check-prefix=DEFAULT |
| 2 | +; RUN: -hwasan-percentile-cutoff-hot=700000 | FileCheck %s --check-prefix=HOT70 |
3 | 3 | ; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S -hwasan-selective-instrumentation=1 \
|
4 |
| -; RUN: -hwasan-percentile-cutoff-hot=700000 | FileCheck %s --check-prefix=HOT_RATE |
| 4 | +; RUN: | FileCheck %s --check-prefix=HOT99 |
5 | 5 | ; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S -hwasan-selective-instrumentation=1 \
|
6 |
| -; RUN: -hwasan-random-skip-rate=0.0 | FileCheck %s --check-prefix=RANDOM_RATE_0 |
| 6 | +; RUN: -hwasan-random-skip-rate=0.0 | FileCheck %s --check-prefix=RANDOM0 |
7 | 7 | ; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S -hwasan-selective-instrumentation=1 \
|
8 |
| -; RUN: -hwasan-random-skip-rate=1.0 | FileCheck %s --check-prefix=RANDOM_RATE_1 |
| 8 | +; RUN: -hwasan-random-skip-rate=1.0 | FileCheck %s --check-prefix=RANDOM1 |
9 | 9 |
|
10 |
| -; DEFAULT: @sanitized |
11 |
| -; DEFAULT-NEXT: %x = alloca i8, i64 4 |
| 10 | +; HOT70: @sanitized |
| 11 | +; HOT70-NEXT: @__hwasan_tls |
12 | 12 |
|
13 |
| -; HOT_RATE: @sanitized |
14 |
| -; HOT_RATE-NEXT: @__hwasan_tls |
| 13 | +; HOT99: @sanitized |
| 14 | +; HOT99-NEXT: %x = alloca i8, i64 4 |
15 | 15 |
|
16 |
| -; RANDOM_RATE_0: @sanitized |
17 |
| -; RANDOM_RATE_0-NEXT: @__hwasan_tls |
| 16 | +; RANDOM0: @sanitized |
| 17 | +; RANDOM0-NEXT: @__hwasan_tls |
18 | 18 |
|
19 |
| -; RANDOM_RATE_1: @sanitized |
20 |
| -; RANDOM_RATE_1-NEXT: %x = alloca i8, i64 4 |
| 19 | +; RANDOM1: @sanitized |
| 20 | +; RANDOM1-NEXT: %x = alloca i8, i64 4 |
21 | 21 |
|
22 | 22 | declare void @use(ptr)
|
23 | 23 |
|
|
0 commit comments