[PATCH] D25521: [PPC] Shorter sequence to load 64bit constant with same hi/lo words

Hal Finkel via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 12 16:07:00 PDT 2016


hfinkel added inline comments.


================
Comment at: test/CodeGen/PowerPC/pr30640.ll:8
+; CHECK: lis 3, -12851
+; CHECK: ori 3, 3, 52685
+; CHECK: rldimi 3, 3, 32, 0
----------------
Please use regexs here to avoid a dependence on unrelated RA choices:

  ; CHECK: lis [[REG1:[0-9]+]], -12851
  ; CHECK: ori [[REG2:[0-9]+]], [[REG1]], 52685

and so on. Only the output register is fixed.



https://reviews.llvm.org/D25521





More information about the llvm-commits mailing list