diff options
| author | Nikita Popov <npopov@redhat.com> | 2023-11-07 11:09:23 +0100 |
|---|---|---|
| committer | Nikita Popov <npopov@redhat.com> | 2023-11-07 11:10:13 +0100 |
| commit | d1ee26ba9f51dcb09074a0a038992b7d36f4917a (patch) | |
| tree | af0295c0c284da70e79b67aa3bc4b31b0833a9d3 | |
| parent | e8961969ec8906c593409748e7c24355236b3cc1 (diff) | |
| download | llvm-d1ee26ba9f51dcb09074a0a038992b7d36f4917a.zip llvm-d1ee26ba9f51dcb09074a0a038992b7d36f4917a.tar.gz llvm-d1ee26ba9f51dcb09074a0a038992b7d36f4917a.tar.bz2 | |
[MLIR] Use different constant expression in test (NFC)
Mul expressions will be removed, so use something else.
| -rw-r--r-- | mlir/test/Target/LLVMIR/Import/constant.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/test/Target/LLVMIR/Import/constant.ll b/mlir/test/Target/LLVMIR/Import/constant.ll index 620c1d3..cd2d00e 100644 --- a/mlir/test/Target/LLVMIR/Import/constant.ll +++ b/mlir/test/Target/LLVMIR/Import/constant.ll @@ -219,10 +219,10 @@ define i64 @const_exprs_with_duplicate() { ; Verify the import of constant expressions with cyclic dependencies. -@cyclic = internal constant i64 mul (i64 ptrtoint (ptr @cyclic to i64), i64 ptrtoint (ptr @cyclic to i64)) +@cyclic = internal constant i64 add (i64 ptrtoint (ptr @cyclic to i64), i64 ptrtoint (ptr @cyclic to i64)) ; CHECK-LABEL: @cyclic ; CHECK: %[[ADDR:.+]] = llvm.mlir.addressof @cyclic ; CHECK: %[[VAL0:.+]] = llvm.ptrtoint %[[ADDR]] -; CHECK: %[[VAL1:.+]] = llvm.mul %[[VAL0]], %[[VAL0]] +; CHECK: %[[VAL1:.+]] = llvm.add %[[VAL0]], %[[VAL0]] ; CHECK: llvm.return %[[VAL1]] |
