[llvm] fix a bug of PPCMIPeepholes which description in issue 71030 (PR #85451)

zhijian lin via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 20 05:52:36 PDT 2024


================
@@ -2408,7 +2408,7 @@ defm SRW  : XForm_6r<31, 536, (outs gprc:$RA), (ins gprc:$RST, gprc:$RB),
                      [(set i32:$RA, (PPCsrl i32:$RST, i32:$RB))]>, ZExt32To64;
 defm SRAW : XForm_6rc<31, 792, (outs gprc:$RA), (ins gprc:$RST, gprc:$RB),
                       "sraw", "$RA, $RST, $RB", IIC_IntShift,
-                      [(set i32:$RA, (PPCsra i32:$RST, i32:$RB))]>, SExt32To64;
+                      [(set i32:$RA, (PPCsra i32:$RST, i32:$RB))]>;
----------------
diggerlin wrote:

there is no 64bit pseudo-code instruction for  SRAW and SRAWI , that there is no `SRAW8` and `SRAWI8` pseudo-code instruction

https://github.com/llvm/llvm-project/pull/85451


More information about the llvm-commits mailing list