diff options
Diffstat (limited to 'test/Instrumentation/AddressSanitizer/ps4.ll')
-rw-r--r-- | test/Instrumentation/AddressSanitizer/ps4.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Instrumentation/AddressSanitizer/ps4.ll b/test/Instrumentation/AddressSanitizer/ps4.ll new file mode 100644 index 000000000000..e160996866b4 --- /dev/null +++ b/test/Instrumentation/AddressSanitizer/ps4.ll @@ -0,0 +1,14 @@ +; RUN: opt < %s -asan -asan-module -S -mtriple=x86_64-scei-ps4 | FileCheck %s + +define i32 @read_4_bytes(i32* %a) sanitize_address { +entry: + %tmp1 = load i32, i32* %a, align 4 + ret i32 %tmp1 +} + +; CHECK: @read_4_bytes +; CHECK-NOT: ret +; Check for ASAN's Offset on the PS4 (2^40 or 0x10000000000) +; CHECK: lshr {{.*}} 3 +; CHECK-NEXT: {{1099511627776}} +; CHECK: ret |