From 0f9a3671b6d12f887501bc80ca50bb23c383686d Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Tue, 18 Jan 2011 16:30:02 -0600 Subject: ARM: Add support for moving predicated false dest operands from sources. --- src/arch/arm/isa/templates/vfp.isa | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/arch/arm/isa/templates/vfp.isa') diff --git a/src/arch/arm/isa/templates/vfp.isa b/src/arch/arm/isa/templates/vfp.isa index 8ccfedd0d..8888dc0ae 100644 --- a/src/arch/arm/isa/templates/vfp.isa +++ b/src/arch/arm/isa/templates/vfp.isa @@ -84,6 +84,11 @@ def template FpRegRegOpConstructor {{ _dest, _op1, mode) { %(constructor)s; + if (!(condCode == COND_AL || condCode == COND_UC)) { + for (int x = 0; x < _numDestRegs; x++) { + _srcRegIdx[_numSrcRegs++] = _destRegIdx[x]; + } + } } }}; @@ -105,6 +110,11 @@ def template FpRegImmOpConstructor {{ _dest, _imm, mode) { %(constructor)s; + if (!(condCode == COND_AL || condCode == COND_UC)) { + for (int x = 0; x < _numDestRegs; x++) { + _srcRegIdx[_numSrcRegs++] = _destRegIdx[x]; + } + } } }}; @@ -130,6 +140,11 @@ def template FpRegRegImmOpConstructor {{ _dest, _op1, _imm, mode) { %(constructor)s; + if (!(condCode == COND_AL || condCode == COND_UC)) { + for (int x = 0; x < _numDestRegs; x++) { + _srcRegIdx[_numSrcRegs++] = _destRegIdx[x]; + } + } } }}; @@ -155,5 +170,10 @@ def template FpRegRegRegOpConstructor {{ _dest, _op1, _op2, mode) { %(constructor)s; + if (!(condCode == COND_AL || condCode == COND_UC)) { + for (int x = 0; x < _numDestRegs; x++) { + _srcRegIdx[_numSrcRegs++] = _destRegIdx[x]; + } + } } }}; -- cgit v1.2.3