[PATCH] D138592: [PowerPC] Implement xscmpeqqp, xscmpgeqp, xscmpgtqp instructions
Maryam Moghadas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 1 13:02:02 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc19f905fed4b: [PowerPC] Implement xscmpeqqp, xscmpgeqp, xscmpgtqp instructions (authored by maryammo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138592/new/
https://reviews.llvm.org/D138592
Files:
llvm/lib/Target/PowerPC/P10InstrResources.td
llvm/lib/Target/PowerPC/PPCInstrP10.td
llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-ISA31.txt
llvm/test/MC/PowerPC/ppc64-encoding-ISA31.s
Index: llvm/test/MC/PowerPC/ppc64-encoding-ISA31.s
===================================================================
--- llvm/test/MC/PowerPC/ppc64-encoding-ISA31.s
+++ llvm/test/MC/PowerPC/ppc64-encoding-ISA31.s
@@ -945,6 +945,15 @@
# CHECK-BE: xsmincqp 2, 2, 3 # encoding: [0xfc,0x42,0x1d,0xc8]
# CHECK-LE: xsmincqp 2, 2, 3 # encoding: [0xc8,0x1d,0x42,0xfc]
xsmincqp 2, 2, 3
+# CHECK-BE: xscmpeqqp 1, 2, 2 # encoding: [0xfc,0x22,0x10,0x88]
+# CHECK-LE: xscmpeqqp 1, 2, 2 # encoding: [0x88,0x10,0x22,0xfc]
+ xscmpeqqp 1, 2, 2
+# CHECK-BE: xscmpgeqp 1, 2, 3 # encoding: [0xfc,0x22,0x19,0x88]
+# CHECK-LE: xscmpgeqp 1, 2, 3 # encoding: [0x88,0x19,0x22,0xfc]
+ xscmpgeqp 1, 2, 3
+# CHECK-BE: xscmpgtqp 1, 2, 4 # encoding: [0xfc,0x22,0x21,0xc8]
+# CHECK-LE: xscmpgtqp 1, 2, 4 # encoding: [0xc8,0x21,0x22,0xfc]
+ xscmpgtqp 1, 2, 4
# CHECK-BE: vstribr 2, 2 # encoding: [0x10,0x41,0x10,0x0d]
# CHECK-LE: vstribr 2, 2 # encoding: [0x0d,0x10,0x41,0x10]
vstribr 2, 2
Index: llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-ISA31.txt
===================================================================
--- llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-ISA31.txt
+++ llvm/test/MC/Disassembler/PowerPC/ppc64-encoding-ISA31.txt
@@ -747,6 +747,15 @@
# CHECK: xsmincqp 2, 2, 3
0xfc 0x42 0x1d 0xc8
+# CHECK: xscmpeqqp 1, 2, 2
+0xfc 0x22 0x10 0x88
+
+# CHECK: xscmpgeqp 1, 2, 3
+0xfc 0x22 0x19 0x88
+
+# CHECK: xscmpgtqp 1, 2, 4
+0xfc 0x22 0x21 0xc8
+
# CHECK: vstribr 2, 2
0x10 0x41 0x10 0x0d
Index: llvm/lib/Target/PowerPC/PPCInstrP10.td
===================================================================
--- llvm/lib/Target/PowerPC/PPCInstrP10.td
+++ llvm/lib/Target/PowerPC/PPCInstrP10.td
@@ -1100,6 +1100,12 @@
}
}
+let Predicates = [IsISA3_1] in {
+ def XSCMPEQQP : X_VT5_VA5_VB5<63, 68, "xscmpeqqp", []>;
+ def XSCMPGEQP : X_VT5_VA5_VB5<63, 196, "xscmpgeqp", []>;
+ def XSCMPGTQP : X_VT5_VA5_VB5<63, 228, "xscmpgtqp", []>;
+}
+
let Predicates = [PCRelativeMemops] in {
// Load i32
def : Pat<(i32 (zextloadi1 (PPCmatpcreladdr PCRelForm:$ga))),
Index: llvm/lib/Target/PowerPC/P10InstrResources.td
===================================================================
--- llvm/lib/Target/PowerPC/P10InstrResources.td
+++ llvm/lib/Target/PowerPC/P10InstrResources.td
@@ -616,7 +616,10 @@
VMUL10EUQ,
VSUBCUQ,
VSUBUQM,
+ XSCMPEQQP,
XSCMPEXPQP,
+ XSCMPGEQP,
+ XSCMPGTQP,
XSCMPOQP,
XSCMPUQP,
XSMAXCQP,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138592.479393.patch
Type: text/x-patch
Size: 2732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221201/dc50ff1c/attachment.bin>
More information about the llvm-commits
mailing list