Blame SOURCES/8168318-pr3466-rh1498320.patch
|
|
a42b25 |
# HG changeset patch
|
|
|
a42b25 |
# User goetz
|
|
|
a42b25 |
# Date 1477563748 -7200
|
|
|
a42b25 |
# Thu Oct 27 12:22:28 2016 +0200
|
|
|
a42b25 |
# Node ID 9b9d9e11c04d5e5f64829d34752e5c94b1c7d911
|
|
|
a42b25 |
# Parent 92f0dbe76a13992cc27188e0f68e4b1771c7004a
|
|
|
a42b25 |
8168318, PR3466, RH1498320: PPC64: Use cmpldi instead of li/cmpld
|
|
|
a42b25 |
Reviewed-by: goetz
|
|
|
a42b25 |
Contributed-by: igor.nunes@eldorado.org.br
|
|
|
a42b25 |
|
|
|
a42b25 |
diff --git a/src/cpu/ppc/vm/ppc.ad b/src/cpu/ppc/vm/ppc.ad
|
|
|
a42b25 |
--- openjdk/hotspot/src/cpu/ppc/vm/ppc.ad
|
|
|
a42b25 |
+++ openjdk/hotspot/src/cpu/ppc/vm/ppc.ad
|
|
|
a42b25 |
@@ -10571,6 +10571,17 @@
|
|
|
a42b25 |
ins_pipe(pipe_class_compare);
|
|
|
a42b25 |
%}
|
|
|
a42b25 |
|
|
|
a42b25 |
+instruct cmpP_reg_null(flagsReg crx, iRegP_N2P src1, immP_0or1 src2) %{
|
|
|
a42b25 |
+ match(Set crx (CmpP src1 src2));
|
|
|
a42b25 |
+ format %{ "CMPLDI $crx, $src1, $src2 \t// ptr" %}
|
|
|
a42b25 |
+ size(4);
|
|
|
a42b25 |
+ ins_encode %{
|
|
|
a42b25 |
+ // TODO: PPC port $archOpcode(ppc64Opcode_cmpl);
|
|
|
a42b25 |
+ __ cmpldi($crx$$CondRegister, $src1$$Register, (int)((short)($src2$$constant & 0xFFFF)));
|
|
|
a42b25 |
+ %}
|
|
|
a42b25 |
+ ins_pipe(pipe_class_compare);
|
|
|
a42b25 |
+%}
|
|
|
a42b25 |
+
|
|
|
a42b25 |
// Used in postalloc expand.
|
|
|
a42b25 |
instruct cmpP_reg_imm16(flagsReg crx, iRegPsrc src1, immL16 src2) %{
|
|
|
a42b25 |
// This match rule prevents reordering of node before a safepoint.
|