[PATCH] D87046: [PPC] Do not emit extswsli in 32BIT mode when using -mcpu=pwr9

Zarko Todorovski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 20:09:58 PDT 2020


ZarkoCA added inline comments.


================
Comment at: llvm/test/CodeGen/PowerPC/ppc-32bit-shift.ll:26
+
+; 64BIT:         extswsli [[REG1:[0-9]+]], {{[0-9]+}}, 8
+; 64BIT-NEXT:    std [[REG1]], 0({{[0-9]+}})
----------------
Xiangling_L wrote:
> Sorry, I should've mentioned this earlier, we want to follow the same rules here for 64bit as above 32bit cases.
> For example:
> 
> 
> ```
> ; 64BIT:               extswsli [[REG1:[0-9]+]], {{REG2:[0-9]+}}, 8
> ```
> 
Does REG2 need to be matched anywhere? 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87046/new/

https://reviews.llvm.org/D87046



More information about the llvm-commits mailing list