mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
2587b4ccc7
Ensure that Fuchsia shadow memory starts at zero. Differential Revision: https://reviews.llvm.org/D99380
10 lines
287 B
LLVM
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
|
|
}
|