diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2010-06-02 12:58:15 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2010-06-02 12:58:15 -0500 |
commit | 49b7088b9101dfabd236c9cf76b700fade70c265 (patch) | |
tree | c15733883b0f259e67a6d11c98cde1386c9dd79c /src/arch/arm/isa/formats | |
parent | 23ba9c7b965ebf2a54a8d399809eb400fc6fe6db (diff) | |
download | gem5-49b7088b9101dfabd236c9cf76b700fade70c265.tar.xz |
ARM: Implement the VCMPE instruction.
Diffstat (limited to 'src/arch/arm/isa/formats')
-rw-r--r-- | src/arch/arm/isa/formats/fp.isa | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/arch/arm/isa/formats/fp.isa b/src/arch/arm/isa/formats/fp.isa index 2b999f751..83f541584 100644 --- a/src/arch/arm/isa/formats/fp.isa +++ b/src/arch/arm/isa/formats/fp.isa @@ -482,6 +482,8 @@ let {{ const uint32_t opc3 = bits(machInst, 7, 6); //const uint32_t opc4 = bits(machInst, 3, 0); const bool single = (bits(machInst, 8) == 0); + // Used to select between vcmp and vcmpe. + const bool e = (bits(machInst, 7) == 1); IntRegIndex vd; IntRegIndex vm; IntRegIndex vn; @@ -641,15 +643,31 @@ let {{ return new WarnUnimplemented("vcvtb, vcvtt", machInst); case 0x4: if (single) { - return new VcmpS(machInst, vd, vm); + if (e) { + return new VcmpeS(machInst, vd, vm); + } else { + return new VcmpS(machInst, vd, vm); + } } else { - return new VcmpD(machInst, vd, vm); + if (e) { + return new VcmpeD(machInst, vd, vm); + } else { + return new VcmpD(machInst, vd, vm); + } } case 0x5: if (single) { - return new VcmpZeroS(machInst, vd, 0); + if (e) { + return new VcmpeZeroS(machInst, vd, 0); + } else { + return new VcmpZeroS(machInst, vd, 0); + } } else { - return new VcmpZeroD(machInst, vd, 0); + if (e) { + return new VcmpeZeroD(machInst, vd, 0); + } else { + return new VcmpZeroD(machInst, vd, 0); + } } case 0x7: if (opc3 == 0x3) { |