The div/rem constant expressions are going away in D129148. Convert some tests to use InstSimplify instead, to show that the constant folding still happens.
8 lines
280 B
LLVM
8 lines
280 B
LLVM
; RUN: llvm-as < %s | llvm-dis | not grep ptrtoint
|
|
; PR4424
|
|
@G = external global i32
|
|
@test5 = constant i32 lshr (i32 0, i32 ptrtoint (ptr @G to i32))
|
|
@test6 = constant i32 ashr (i32 0, i32 ptrtoint (ptr @G to i32))
|
|
@test7 = constant i32 shl (i32 0, i32 ptrtoint (ptr @G to i32))
|
|
|