summaryrefslogtreecommitdiff
path: root/llvm/test/Assembler/2004-03-07-FunctionAddressAlignment.ll
blob: 5479500f3fd957f0f9a125fbf798ab4acd45a7c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; 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 (ptr @foo to i32), i32 1)
}

define i32 @foo2() {
	ret i32 and (i32 1, i32 ptrtoint (ptr @foo2 to i32))
}

define i1 @foo3() {
	ret i1 icmp ne (ptr @foo3, ptr null)
}