1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/Assembler/2004-03-07-FunctionAddressAlignment.ll
Ranjeet Singh 76c2d6b3f2 Revert patches 348835 and 348571 because they're
causing code size performance regressions.

llvm-svn: 350402
2019-01-04 16:39:10 +00:00

17 lines
343 B
LLVM

; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint
; RUN: verify-uselistorder %s
; All of these should be eliminable
define i32 @foo() {
ret i32 and (i32 ptrtoint (i32()* @foo to i32), i32 1)
}
define i32 @foo2() {
ret i32 and (i32 1, i32 ptrtoint (i32()* @foo2 to i32))
}
define i1 @foo3() {
ret i1 icmp ne (i1()* @foo3, i1()* null)
}