changeset 5355f44912f6 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=5355f44912f6
description:
        X86: Implement the media shifts that operate on 64 bits or less at a 
time.

diffstat:

7 files changed, 501 insertions(+), 189 deletions(-)
src/arch/x86/isa/decoder/two_byte_opcodes.isa                          |  340 
++++------
src/arch/x86/isa/insts/simd128/integer/shift/left_logical_shift.py     |   73 ++
src/arch/x86/isa/insts/simd128/integer/shift/right_arithmetic_shift.py |   47 +
src/arch/x86/isa/insts/simd128/integer/shift/right_logical_shift.py    |   73 ++
src/arch/x86/isa/insts/simd64/integer/shift/left_logical_shift.py      |   59 +
src/arch/x86/isa/insts/simd64/integer/shift/right_arithmetic_shift.py  |   39 +
src/arch/x86/isa/insts/simd64/integer/shift/right_logical_shift.py     |   59 +

diffs (truncated from 801 to 300 lines):

diff -r 04df43def004 -r 5355f44912f6 
src/arch/x86/isa/decoder/two_byte_opcodes.isa
--- a/src/arch/x86/isa/decoder/two_byte_opcodes.isa     Mon Aug 17 20:15:16 
2009 -0700
+++ b/src/arch/x86/isa/decoder/two_byte_opcodes.isa     Mon Aug 17 20:15:16 
2009 -0700
@@ -595,172 +595,170 @@
                     }
                     default: UD2();
                 }
-            }
-            0x0E: decode LEGACY_DECODEVAL {
-                // no prefix
-                0x0: decode OPCODE_OP_BOTTOM3 {
-                    0x0: pshufw_Pq_Qq_Ib();
-                    //0x1: group13_pshimw();
-                    0x1: decode MODRM_REG {
-                        0x2: decode LEGACY_OP {
-                            0x0: psrlw_PRq_Ib();
-                            0x1: psrlw_VRo_Ib();
+                0x0E: decode LEGACY_DECODEVAL {
+                    // no prefix
+                    0x0: decode OPCODE_OP_BOTTOM3 {
+                        0x0: WarnUnimpl::pshufw_Pq_Qq_Ib();
+                        //0x1: group13_pshimw();
+                        0x1: decode MODRM_REG {
+                            0x2: decode LEGACY_OP {
+                                0x0: PSRLW(PRq,Ib);
+                                0x1: PSRLW(VRo,Ib);
+                            }
+                            0x4: decode LEGACY_OP {
+                                0x0: PSRAW(PRq,Ib);
+                                0x1: PSRAW(VRo,Ib);
+                            }
+                            0x6: decode LEGACY_OP {
+                                0x0: PSLLW(PRq,Ib);
+                                0x1: PSLLW(VRo,Ib);
+                            }
+                            default: UD2();
                         }
-                        0x4: decode LEGACY_OP {
-                            0x0: psraw_PRq_Ib();
-                            0x1: psraw_VRo_Ib();
+                        //0x2: group14_pshimd();
+                        0x2: decode MODRM_REG {
+                            0x2: decode LEGACY_OP {
+                                0x0: PSRLD(PRq,Ib);
+                                0x1: PSRLD(VRo,Ib);
+                            }
+                            0x4: decode LEGACY_OP {
+                                0x0: PSRAD(PRq,Ib);
+                                0x1: PSRAD(VRo,Ib);
+                            }
+                            0x6: decode LEGACY_OP {
+                                0x0: PSLLD(PRq,Ib);
+                                0x1: PSLLD(VRo,Ib);
+                            }
+                            default: UD2();
                         }
-                        0x6: decode LEGACY_OP {
-                            0x0: psllw_PRq_Ib();
-                            0x1: psllw_VRo_Ib();
+                        //0x3: group15_pshimq();
+                        0x3: decode MODRM_REG {
+                            0x2: decode LEGACY_OP {
+                                0x0: PSRLQ(PRq,Ib);
+                                0x1: PSRLQ(VRo,Ib);
+                            }
+                            0x3: decode LEGACY_OP {
+                                0x0: UD2();
+                                0x1: WarnUnimpl::psrldq_VRo_Ib();
+                            }
+                            0x6: decode LEGACY_OP {
+                                0x0: PSLLQ(PRq,Ib);
+                                0x1: PSLLQ(VRo,Ib);
+                            }
+                            0x7: decode LEGACY_OP {
+                                0x0: UD2();
+                                0x1: WarnUnimpl::pslldq_VRo_Ib();
+                            }
+                            default: Inst::UD2();
                         }
-                        default: Inst::UD2();
+                        0x4: Inst::PCMPEQB(Pq,Qq);
+                        0x5: Inst::PCMPEQW(Pq,Qq);
+                        0x6: Inst::PCMPEQD(Pq,Qq);
+                        0x7: WarnUnimpl::emms();
                     }
-                    //0x2: group14_pshimd();
-                    0x2: decode MODRM_REG {
-                        0x2: decode LEGACY_OP {
-                            0x0: psrld_PRq_Ib();
-                            0x1: psrld_VRo_Ib();
+                    // repe (0xF3)
+                    0x4: decode OPCODE_OP_BOTTOM3 {
+                        0x0: WarnUnimpl::pshufhw_Vo_Wo_Ib();
+                        default: UD2();
+                    }
+                    // operand size (0x66)
+                    0x1: decode OPCODE_OP_BOTTOM3 {
+                        0x0: WarnUnimpl::pshufd_Vo_Wo_Ib();
+                        //0x1: group13_pshimw();
+                        0x1: decode MODRM_REG {
+                            0x2: decode LEGACY_OP {
+                                0x0: PSRLW(PRq,Ib);
+                                0x1: PSRLW(VRo,Ib);
+                            }
+                            0x4: decode LEGACY_OP {
+                                0x0: PSRAW(PRq,Ib);
+                                0x1: PSRAW(VRo,Ib);
+                            }
+                            0x6: decode LEGACY_OP {
+                                0x0: PSLLW(PRq,Ib);
+                                0x1: PSLLW(VRo,Ib);
+                            }
+                            default: Inst::UD2();
                         }
-                        0x4: decode LEGACY_OP {
-                            0x0: psrad_PRq_Ib();
-                            0x1: psrad_VRo_Ib();
+                        //0x2: group14_pshimd();
+                        0x2: decode MODRM_REG {
+                            0x2: decode LEGACY_OP {
+                                0x0: PSRLD(PRq,Ib);
+                                0x1: PSRLD(VRo,Ib);
+                            }
+                            0x4: decode LEGACY_OP {
+                                0x0: PSRAD(PRq,Ib);
+                                0x1: PSRAD(VRo,Ib);
+                            }
+                            0x6: decode LEGACY_OP {
+                                0x0: PSLLD(PRq,Ib);
+                                0x1: PSLLD(VRo,Ib);
+                            }
+                            default: UD2();
                         }
-                        0x6: decode LEGACY_OP {
-                            0x0: pslld_PRq_Ib();
-                            0x1: pslld_VRo_Ib();
+                        //0x3: group15_pshimq();
+                        0x3: decode MODRM_REG {
+                            0x2: decode LEGACY_OP {
+                                0x0: PSRLQ(PRq,Ib);
+                                0x1: PSRLQ(VRo,Ib);
+                            }
+                            0x3: decode LEGACY_OP {
+                                0x0: UD2();
+                                0x1: WarnUnimpl::psrldq_VRo_Ib();
+                            }
+                            0x6: decode LEGACY_OP {
+                                0x0: PSLLQ(PRq,Ib);
+                                0x1: PSLLQ(VRo,Ib);
+                            }
+                            0x7: decode LEGACY_OP {
+                                0x0: UD2();
+                                0x1: WarnUnimpl::pslldq_VRo_Ib();
+                            }
+                            default: UD2();
                         }
-                        default: Inst::UD2();
+                        0x4: PCMPEQB(Vo,Wo);
+                        0x5: PCMPEQW(Vo,Wo);
+                        0x6: PCMPEQD(Vo,Wo);
+                        default: UD2();
                     }
-                    //0x3: group15_pshimq();
-                    0x3: decode MODRM_REG {
-                        0x2: decode LEGACY_OP {
-                            0x0: psrlq_PRq_Ib();
-                            0x1: psrlq_VRo_Ib();
-                        }
-                        0x3: decode LEGACY_OP {
-                            0x0: Inst::UD2();
-                            0x1: psrldq_VRo_Ib();
-                        }
-                        0x6: decode LEGACY_OP {
-                            0x0: psllq_PRq_Ib();
-                            0x1: psllq_VRo_Ib();
-                        }
-                        0x7: decode LEGACY_OP {
-                            0x0: Inst::UD2();
-                            0x1: pslldq_VRo_Ib();
-                        }
-                        default: Inst::UD2();
+                    // repne (0xF2)
+                    0x8: decode OPCODE_OP_BOTTOM3 {
+                        0x0: WarnUnimpl::pshuflw_Vo_Wo_Ib();
+                        default: UD2();
                     }
-                    0x4: Inst::PCMPEQB(Pq,Qq);
-                    0x5: Inst::PCMPEQW(Pq,Qq);
-                    0x6: Inst::PCMPEQD(Pq,Qq);
-                    0x7: emms();
+                    default: UD2();
                 }
-                // repe (0xF3)
-                0x4: decode OPCODE_OP_BOTTOM3 {
-                    0x0: pshufhw_Vo_Wo_Ib();
-                    default: Inst::UD2();
+                0x0F: decode LEGACY_DECODEVAL {
+                    // no prefix
+                    0x0: decode OPCODE_OP_BOTTOM3 {
+                        0x0: WarnUnimpl::vmread_Ed_or_Eq_Gd_or_Gq();
+                        0x1: WarnUnimpl::vmwrite_Gd_or_Gq_Ed_or_Eq();
+                        0x6: MOVD(Edp,Pdp);
+                        0x7: MOVQ(Qq,Pq);
+                        default: UD2();
+                    }
+                    // repe (0xF3)
+                    0x4: decode OPCODE_OP_BOTTOM3 {
+                        0x6: MOVQ(Vq,Wq);
+                        0x7: WarnUnimpl::movdqu_Wo_Vo();
+                        default: UD2();
+                    }
+                    // operand size (0x66)
+                    0x1: decode OPCODE_OP_BOTTOM3 {
+                        0x4: WarnUnimpl::haddpd_Vo_Wo();
+                        0x5: WarnUnimpl::hsubpd_Vo_Wo();
+                        0x6: WarnUnimpl::movd_Ed_Vd();
+                        0x7: WarnUnimpl::movdqa_Wo_Vo();
+                        default: UD2();
+                    }
+                    // repne (0xF2)
+                    0x8: decode OPCODE_OP_BOTTOM3 {
+                        0x4: WarnUnimpl::haddps_Vo_Wo();
+                        0x5: WarnUnimpl::hsubps_Vo_Wo();
+                        default: UD2();
+                    }
+                    default: UD2();
                 }
-                // operand size (0x66)
-                0x1: decode OPCODE_OP_BOTTOM3 {
-                    0x0: pshufd_Vo_Wo_Ib();
-                    //0x1: group13_pshimw();
-                    0x1: decode MODRM_REG {
-                        0x2: decode LEGACY_OP {
-                            0x0: psrlw_PRq_Ib();
-                            0x1: psrlw_VRo_Ib();
-                        }
-                        0x4: decode LEGACY_OP {
-                            0x0: psraw_PRq_Ib();
-                            0x1: psraw_VRo_Ib();
-                        }
-                        0x6: decode LEGACY_OP {
-                            0x0: psllw_PRq_Ib();
-                            0x1: psllw_VRo_Ib();
-                        }
-                        default: Inst::UD2();
-                    }
-                    //0x2: group14_pshimd();
-                    0x2: decode MODRM_REG {
-                        0x2: decode LEGACY_OP {
-                            0x0: psrld_PRq_Ib();
-                            0x1: psrld_VRo_Ib();
-                        }
-                        0x4: decode LEGACY_OP {
-                            0x0: psrad_PRq_Ib();
-                            0x1: psrad_VRo_Ib();
-                        }
-                        0x6: decode LEGACY_OP {
-                            0x0: pslld_PRq_Ib();
-                            0x1: pslld_VRo_Ib();
-                        }
-                        default: Inst::UD2();
-                    }
-                    //0x3: group15_pshimq();
-                    0x3: decode MODRM_REG {
-                        0x2: decode LEGACY_OP {
-                            0x0: psrlq_PRq_Ib();
-                            0x1: psrlq_VRo_Ib();
-                        }
-                        0x3: decode LEGACY_OP {
-                            0x0: Inst::UD2();
-                            0x1: psrldq_VRo_Ib();
-                        }
-                        0x6: decode LEGACY_OP {
-                            0x0: psllq_PRq_Ib();
-                            0x1: psllq_VRo_Ib();
-                        }
-                        0x7: decode LEGACY_OP {
-                            0x0: Inst::UD2();
-                            0x1: pslldq_VRo_Ib();
-                        }
-                        default: Inst::UD2();
-                    }
-                    0x4: Inst::PCMPEQB(Vo,Wo);
-                    0x5: Inst::PCMPEQW(Vo,Wo);
-                    0x6: Inst::PCMPEQD(Vo,Wo);
-                    default: Inst::UD2();
-                }
-                // repne (0xF2)
-                0x8: decode OPCODE_OP_BOTTOM3 {
-                    0x0: pshuflw_Vo_Wo_Ib();
-                    default: Inst::UD2();
-                }
-                default: Inst::UD2();
-            }
-            0x0F: decode LEGACY_DECODEVAL {
-                // no prefix
-                0x0: decode OPCODE_OP_BOTTOM3 {
-                    0x0: vmread_Ed_or_Eq_Gd_or_Gq();
-                    0x1: vmwrite_Gd_or_Gq_Ed_or_Eq();
-                    0x6: Inst::MOVD(Edp,Pdp);
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to