brintos

brintos / llvm-project-archived public Read only

0
0
Text · 733 B · f75042b Raw
27 lines · plain
1; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S                                      | FileCheck %s --check-prefix=FULL2; RUN: opt < %s -passes='require<profile-summary>,hwasan' -S -hwasan-percentile-cutoff-hot=990000 | FileCheck %s --check-prefix=SELSAN3 4; FULL: @not_sanitized5; FULL-NEXT: %x = alloca i8, i64 46; FULL: @sanitized_no_ps7; FULL-NEXT: @__hwasan_tls8 9; SELSAN: @not_sanitized10; SELSAN-NEXT: %x = alloca i8, i64 411; SELSAN: @sanitized_no_ps12; SELSAN-NEXT: @__hwasan_tls13 14declare void @use(ptr)15 16define void @not_sanitized() {17  %x = alloca i8, i64 418  call void @use(ptr %x)19  ret void20 }21 22define void @sanitized_no_ps() sanitize_hwaddress {23  %x = alloca i8, i64 424  call void @use(ptr %x)25  ret void26 }27