mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
upgrade this test, which wasn't testing the right thing since llvm-upgrade came around.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
01042345c8
commit
d1bb1c2765
@ -1,15 +1,15 @@
|
|||||||
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep cast
|
; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint
|
||||||
; All of these should be eliminable
|
; All of these should be eliminable
|
||||||
|
|
||||||
|
|
||||||
int %foo() {
|
define i32 @foo() {
|
||||||
ret int and (int cast (int()* %foo to int), int 1)
|
ret i32 and (i32 ptrtoint (i32()* @foo to i32), i32 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
int %foo2() {
|
define i32 @foo2() {
|
||||||
ret int and (int 1, int cast (int()* %foo2 to int))
|
ret i32 and (i32 1, i32 ptrtoint (i32()* @foo2 to i32))
|
||||||
}
|
}
|
||||||
|
|
||||||
bool %foo3() {
|
define i1 @foo3() {
|
||||||
ret bool cast (bool()* %foo3 to bool)
|
ret i1 icmp ne (i1()* @foo3, i1()* null)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user