summaryrefslogtreecommitdiff
path: root/src/arch/arm/isa/templates/mult.isa
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/isa/templates/mult.isa')
-rw-r--r--src/arch/arm/isa/templates/mult.isa10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/arch/arm/isa/templates/mult.isa b/src/arch/arm/isa/templates/mult.isa
index d5001fb5f..dd4847fd4 100644
--- a/src/arch/arm/isa/templates/mult.isa
+++ b/src/arch/arm/isa/templates/mult.isa
@@ -57,6 +57,11 @@ def template Mult3Constructor {{
_reg0, _reg1, _reg2)
{
%(constructor)s;
+ if (!(condCode == COND_AL || condCode == COND_UC)) {
+ for (int x = 0; x < _numDestRegs; x++) {
+ _srcRegIdx[_numSrcRegs++] = _destRegIdx[x];
+ }
+ }
}
}};
@@ -82,5 +87,10 @@ def template Mult4Constructor {{
_reg0, _reg1, _reg2, _reg3)
{
%(constructor)s;
+ if (!(condCode == COND_AL || condCode == COND_UC)) {
+ for (int x = 0; x < _numDestRegs; x++) {
+ _srcRegIdx[_numSrcRegs++] = _destRegIdx[x];
+ }
+ }
}
}};