mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-15 10:39:47 +00:00
[Verifier] Improve test coverage for rL277413
As suggest via post-commit review. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277414 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
308cf93891
commit
f21ab36404
@ -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))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user