Home | History | Annotate | Download | only in ConstProp
      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 
     12