Skip to content

Commit d1ee26b

Browse files
committed
[MLIR] Use different constant expression in test (NFC)
Mul expressions will be removed, so use something else.
1 parent e896196 commit d1ee26b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/test/Target/LLVMIR/Import/constant.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,10 @@ define i64 @const_exprs_with_duplicate() {
219219

220220
; Verify the import of constant expressions with cyclic dependencies.
221221

222-
@cyclic = internal constant i64 mul (i64 ptrtoint (ptr @cyclic to i64), i64 ptrtoint (ptr @cyclic to i64))
222+
@cyclic = internal constant i64 add (i64 ptrtoint (ptr @cyclic to i64), i64 ptrtoint (ptr @cyclic to i64))
223223

224224
; CHECK-LABEL: @cyclic
225225
; CHECK: %[[ADDR:.+]] = llvm.mlir.addressof @cyclic
226226
; CHECK: %[[VAL0:.+]] = llvm.ptrtoint %[[ADDR]]
227-
; CHECK: %[[VAL1:.+]] = llvm.mul %[[VAL0]], %[[VAL0]]
227+
; CHECK: %[[VAL1:.+]] = llvm.add %[[VAL0]], %[[VAL0]]
228228
; CHECK: llvm.return %[[VAL1]]

0 commit comments

Comments
 (0)