@@ -6659,33 +6659,6 @@ instruct castP2X(rRegL dst, rRegP src)
6659
6659
ins_pipe(ialu_reg_reg); // XXX
6660
6660
%}
6661
6661
6662
- instruct castN2I(rRegI dst, rRegN src)
6663
- %{
6664
- match(Set dst (CastN2I src));
6665
-
6666
- format %{ "movl $dst, $src\t# compressed ptr -> int" %}
6667
- ins_encode %{
6668
- if ($dst$$reg != $src$$reg) {
6669
- __ movl($dst$$Register, $src$$Register);
6670
- }
6671
- %}
6672
- ins_pipe(ialu_reg_reg); // XXX
6673
- %}
6674
-
6675
- instruct castI2N(rRegN dst, rRegI src)
6676
- %{
6677
- match(Set dst (CastI2N src));
6678
-
6679
- format %{ "movl $dst, $src\t# int -> compressed ptr" %}
6680
- ins_encode %{
6681
- if ($dst$$reg != $src$$reg) {
6682
- __ movl($dst$$Register, $src$$Register);
6683
- }
6684
- %}
6685
- ins_pipe(ialu_reg_reg); // XXX
6686
- %}
6687
-
6688
-
6689
6662
// Convert oop into int for vectors alignment masking
6690
6663
instruct convP2I(rRegI dst, rRegP src)
6691
6664
%{
@@ -11512,17 +11485,6 @@ instruct testI_reg_mem(rFlagsReg cr, rRegI src, memory mem, immI0 zero)
11512
11485
ins_pipe(ialu_cr_reg_mem);
11513
11486
%}
11514
11487
11515
- // Fold array properties check
11516
- instruct testI_mem_imm(rFlagsReg cr, memory mem, immI con, immI0 zero)
11517
- %{
11518
- match(Set cr (CmpI (AndI (CastN2I (LoadNKlass mem)) con) zero));
11519
-
11520
- format %{ "testl $mem, $con" %}
11521
- opcode(0xF7, 0x00);
11522
- ins_encode(REX_mem(mem), OpcP, RM_opc_mem(0x00, mem), Con32(con));
11523
- ins_pipe(ialu_mem_imm);
11524
- %}
11525
-
11526
11488
// Unsigned compare Instructions; really, same as signed except they
11527
11489
// produce an rFlagsRegU instead of rFlagsReg.
11528
11490
instruct compU_rReg(rFlagsRegU cr, rRegI op1, rRegI op2)
@@ -11835,17 +11797,6 @@ instruct testL_reg_mem2(rFlagsReg cr, rRegP src, memory mem, immL0 zero)
11835
11797
ins_pipe(ialu_cr_reg_mem);
11836
11798
%}
11837
11799
11838
- // Fold array properties check
11839
- instruct testL_reg_mem3(rFlagsReg cr, memory mem, rRegL src, immL0 zero)
11840
- %{
11841
- match(Set cr (CmpL (AndL (CastP2X (LoadKlass mem)) src) zero));
11842
-
11843
- format %{ "testq $src, $mem\t# test array properties" %}
11844
- opcode(0x85);
11845
- ins_encode(REX_reg_mem_wide(src, mem), OpcP, reg_mem(src, mem));
11846
- ins_pipe(ialu_cr_reg_mem);
11847
- %}
11848
-
11849
11800
// Manifest a CmpL result in an integer register. Very painful.
11850
11801
// This is the test to avoid.
11851
11802
instruct cmpL3_reg_reg(rRegI dst, rRegL src1, rRegL src2, rFlagsReg flags)
0 commit comments