Nick Lewycky | 5a4c808 | 2009-06-21 01:56:41 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint |
| 2 | ; PR4424 |
| 3 | @G = external global i32 |
| 4 | @test1 = constant i32 sdiv (i32 0, i32 ptrtoint (i32* @G to i32)) |
| 5 | @test2 = constant i32 udiv (i32 0, i32 ptrtoint (i32* @G to i32)) |
| 6 | @test3 = constant i32 srem (i32 0, i32 ptrtoint (i32* @G to i32)) |
| 7 | @test4 = constant i32 urem (i32 0, i32 ptrtoint (i32* @G to i32)) |
| 8 | @test5 = constant i32 lshr (i32 0, i32 ptrtoint (i32* @G to i32)) |
| 9 | @test6 = constant i32 ashr (i32 0, i32 ptrtoint (i32* @G to i32)) |
| 10 | @test7 = constant i32 shl (i32 0, i32 ptrtoint (i32* @G to i32)) |
| 11 | |