[PATCH] D126807: [PowerPC] Fix LQ-STQ instructions to use correct offset and base
Nemanja Ivanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 14 16:40:37 PDT 2022
nemanjai added inline comments.
================
Comment at: llvm/test/CodeGen/PowerPC/LQ-STQ-32bit-offset.ll:12-18
+; CHECK: lis [[REG1:r[0-9]+]], {{[0-9]+}}
+; CHECK-NEXT: ori [[REG1]], [[REG1]], {{[0-9]+}}
+; CHECK-NEXT: add [[REG2:r[0-9]+]], r31, [[REG1]]
+; CHECK: sync
+; CHECK-NEXT: stq r{{[0-9]+}}, [[OFF:[0-9]+]]([[REG2]])
+; CHECK-NEXT: sync
+; CHECK-NEXT: lq r{{[0-9]+}}, [[OFF]]([[REG2]])
----------------
No regex please. Lets produce actual instructions that show the registers as well as offsets.
================
Comment at: llvm/test/CodeGen/PowerPC/LQ-STQ.ll:12
+; CHECK: # %bb.0: # %entry
+; CHECK: stq r{{[0-9]+}}, -[[OFF:[0-9]+]](r1)
+; CHECK-NEXT: sync
----------------
Same as above.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126807/new/
https://reviews.llvm.org/D126807
More information about the llvm-commits
mailing list