1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Instrumentation/HWAddressSanitizer/fuchsia.ll
Leonard Chan 2587b4ccc7 [llvm][hwasan] Add Fuchsia shadow mapping configuration
Ensure that Fuchsia shadow memory starts at zero.

Differential Revision: https://reviews.llvm.org/D99380
2021-03-25 15:28:59 -07:00

10 lines
287 B
LLVM

; Check HWASan shadow mapping on Fuchsia.
; RUN: opt -hwasan -S -mtriple=aarch64-unknown-fuchsia < %s | FileCheck %s
define i32 @test_load(i32* %a) sanitize_hwaddress {
; CHECK: %.hwasan.shadow = call i8* asm "", "=r,0"(i8* null)
entry:
%x = load i32, i32* %a, align 4
ret i32 %x
}