aboutsummaryrefslogtreecommitdiff
path: root/test/Assembler/2004-03-07-FunctionAddressAlignment.ll
blob: e3bf0bb8ac78eefcfd2bded0d3656809219cda58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint
; 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)
}