1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[asan] fix tests for the new ABI

llvm-svn: 174959
This commit is contained in:
Kostya Serebryany 2013-02-12 11:14:24 +00:00
parent b7c0f19f8a
commit 4709ce39c2
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ define i32 @test_load(i32* %a) address_safety {
; CHECK-NOT: load ; CHECK-NOT: load
; CHECK: %[[LOAD_ADDR:[^ ]*]] = ptrtoint i32* %a to i64 ; CHECK: %[[LOAD_ADDR:[^ ]*]] = ptrtoint i32* %a to i64
; CHECK: lshr i64 %[[LOAD_ADDR]], 3 ; CHECK: lshr i64 %[[LOAD_ADDR]], 3
; CHECK: or i64 ; CHECK: {{or|add}}
; CHECK: %[[LOAD_SHADOW_PTR:[^ ]*]] = inttoptr ; CHECK: %[[LOAD_SHADOW_PTR:[^ ]*]] = inttoptr
; CHECK: %[[LOAD_SHADOW:[^ ]*]] = load i8* %[[LOAD_SHADOW_PTR]] ; CHECK: %[[LOAD_SHADOW:[^ ]*]] = load i8* %[[LOAD_SHADOW_PTR]]
; CHECK: icmp ne i8 ; CHECK: icmp ne i8
@ -43,7 +43,7 @@ define void @test_store(i32* %a) address_safety {
; CHECK-NOT: store ; CHECK-NOT: store
; CHECK: %[[STORE_ADDR:[^ ]*]] = ptrtoint i32* %a to i64 ; CHECK: %[[STORE_ADDR:[^ ]*]] = ptrtoint i32* %a to i64
; CHECK: lshr i64 %[[STORE_ADDR]], 3 ; CHECK: lshr i64 %[[STORE_ADDR]], 3
; CHECK: or i64 ; CHECK: {{or|add}}
; CHECK: %[[STORE_SHADOW_PTR:[^ ]*]] = inttoptr ; CHECK: %[[STORE_SHADOW_PTR:[^ ]*]] = inttoptr
; CHECK: %[[STORE_SHADOW:[^ ]*]] = load i8* %[[STORE_SHADOW_PTR]] ; CHECK: %[[STORE_SHADOW:[^ ]*]] = load i8* %[[STORE_SHADOW_PTR]]
; CHECK: icmp ne i8 ; CHECK: icmp ne i8

View File

@ -9,8 +9,8 @@ entry:
; CHECK: @read_4_bytes ; CHECK: @read_4_bytes
; CHECK-NOT: ret ; CHECK-NOT: ret
; CHECK: lshr {{.*}} 3 ; CHECK: lshr {{.*}} 3
; Check for ASAN's Offset for 64-bit (2^44) ; Check for ASAN's Offset for 64-bit (2^44 or 7fff8000)
; CHECK-NEXT: 17592186044416 ; CHECK-NEXT: {{17592186044416|2147450880}}
; CHECK: ret ; CHECK: ret
define void @example_atomicrmw(i64* %ptr) nounwind uwtable address_safety { define void @example_atomicrmw(i64* %ptr) nounwind uwtable address_safety {