1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

[Verifier] Improve test coverage for rL277413

As suggest via post-commit review.

llvm-svn: 277414
This commit is contained in:
Sanjoy Das 2016-08-02 03:23:22 +00:00
parent 7931b59359
commit 7e53026976

View File

@ -55,3 +55,15 @@ define i64 @f_8() {
; CHECK: ptrtoint not supported for non-integral pointers
ret i64 ptrtoint (i8 addrspace(4)* @global0 to i64)
}
define i8 addrspace(4)* @f_9() {
; CHECK: inttoptr not supported for non-integral pointers
ret i8 addrspace(4)* getelementptr (i8, i8 addrspace(4)* inttoptr (i64 55 to i8 addrspace(4)*), i32 100)
}
@global1 = addrspace(4) constant i8 42
define i8 addrspace(4)* @f_10(i64 %rhs) {
; CHECK: ptrtoint not supported for non-integral pointers
ret i8 addrspace(4)* getelementptr (i8, i8 addrspace(4)* @global0, i64 ptrtoint (i8 addrspace(4)* @global1 to i64))
}