2004-03-07-FunctionAddressAlignment.ll 343 B

12345678910111213141516
  1. ; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint
  2. ; RUN: verify-uselistorder %s
  3. ; All of these should be eliminable
  4. define i32 @foo() {
  5. ret i32 and (i32 ptrtoint (i32()* @foo to i32), i32 1)
  6. }
  7. define i32 @foo2() {
  8. ret i32 and (i32 1, i32 ptrtoint (i32()* @foo2 to i32))
  9. }
  10. define i1 @foo3() {
  11. ret i1 icmp ne (i1()* @foo3, i1()* null)
  12. }