diff options
| author | 2014-01-25 19:27:20 +0000 | |
|---|---|---|
| committer | 2014-01-25 19:27:21 +0000 | |
| commit | cd28a22fb57c35f164136566b352606439d9150d (patch) | |
| tree | a7e5997487f485e539dede678ec7d3c909317f3f /compiler | |
| parent | f9b3bdbb3032d7da3b7a7c58adea90de3077d925 (diff) | |
| parent | d3266bcc340d653e178e3ab9d74512c8db122eee (diff) | |
Merge "Reduce x86 sequence for GP pair to XMM"
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/dex/quick/x86/assemble_x86.cc | 1 | ||||
| -rw-r--r-- | compiler/dex/quick/x86/utility_x86.cc | 6 | ||||
| -rw-r--r-- | compiler/dex/quick/x86/x86_lir.h | 1 |
3 files changed, 4 insertions, 4 deletions
diff --git a/compiler/dex/quick/x86/assemble_x86.cc b/compiler/dex/quick/x86/assemble_x86.cc index 5e1c4d1e9f..35bdb0f2d7 100644 --- a/compiler/dex/quick/x86/assemble_x86.cc +++ b/compiler/dex/quick/x86/assemble_x86.cc @@ -288,6 +288,7 @@ ENCODING_MAP(Cmp, IS_LOAD, 0, 0, EXT_0F_ENCODING_MAP(Subss, 0xF3, 0x5C, REG_DEF0), EXT_0F_ENCODING_MAP(Divsd, 0xF2, 0x5E, REG_DEF0), EXT_0F_ENCODING_MAP(Divss, 0xF3, 0x5E, REG_DEF0), + EXT_0F_ENCODING_MAP(Punpckldq, 0x66, 0x62, REG_DEF0), { kX86PsrlqRI, kRegImm, IS_BINARY_OP | REG_DEF0_USE0, { 0x66, 0, 0x0F, 0x73, 0, 2, 0, 1 }, "PsrlqRI", "!0r,!1d" }, { kX86PsllqRI, kRegImm, IS_BINARY_OP | REG_DEF0_USE0, { 0x66, 0, 0x0F, 0x73, 0, 6, 0, 1 }, "PsllqRI", "!0r,!1d" }, diff --git a/compiler/dex/quick/x86/utility_x86.cc b/compiler/dex/quick/x86/utility_x86.cc index a2c215c0ab..fcfd885167 100644 --- a/compiler/dex/quick/x86/utility_x86.cc +++ b/compiler/dex/quick/x86/utility_x86.cc @@ -346,8 +346,7 @@ LIR* X86Mir2Lir::LoadConstantWide(int r_dest_lo, int r_dest_hi, int64_t value) { if (val_hi != 0) { r_dest_hi = AllocTempDouble(); LoadConstantNoClobber(r_dest_hi, val_hi); - NewLIR2(kX86PsllqRI, r_dest_hi, 32); - NewLIR2(kX86OrpsRR, r_dest_lo, r_dest_hi); + NewLIR2(kX86PunpckldqRR, r_dest_lo, r_dest_hi); FreeTemp(r_dest_hi); } } @@ -594,8 +593,7 @@ void X86Mir2Lir::OpVectorRegCopyWide(uint8_t fp_reg, uint8_t low_reg, uint8_t hi NewLIR2(kX86MovdxrRR, fp_reg, low_reg); int tmp_reg = AllocTempDouble(); NewLIR2(kX86MovdxrRR, tmp_reg, high_reg); - NewLIR2(kX86PsllqRI, tmp_reg, 32); - NewLIR2(kX86OrpsRR, fp_reg, tmp_reg); + NewLIR2(kX86PunpckldqRR, fp_reg, tmp_reg); FreeTemp(tmp_reg); } diff --git a/compiler/dex/quick/x86/x86_lir.h b/compiler/dex/quick/x86/x86_lir.h index d7f61fc027..e091a846bf 100644 --- a/compiler/dex/quick/x86/x86_lir.h +++ b/compiler/dex/quick/x86/x86_lir.h @@ -350,6 +350,7 @@ enum X86OpCode { Binary0fOpCode(kX86Subss), // float subtract Binary0fOpCode(kX86Divsd), // double divide Binary0fOpCode(kX86Divss), // float divide + Binary0fOpCode(kX86Punpckldq), // Interleave low-order double words kX86PsrlqRI, // right shift of floating point registers kX86PsllqRI, // left shift of floating point registers kX86SqrtsdRR, // sqrt of floating point register |