arch-arm: Switch the AAPCS ABIs to .as<>() instead of .laneView<>().
Change-Id: I9e9c7163db4c061af00111b8dc959c364c6b7ae6 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41898 Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -463,7 +463,7 @@ struct Result<Aapcs32Vfp, Float, typename std::enable_if_t<
|
||||
|
||||
RegId id(VecRegClass, 0);
|
||||
auto reg = tc->readVecReg(id);
|
||||
reg.laneView<Float, 0>() = f;
|
||||
reg.as<Float>()[0] = f;
|
||||
tc->setVecReg(id, reg);
|
||||
};
|
||||
};
|
||||
@@ -487,7 +487,7 @@ struct Argument<Aapcs32Vfp, Float, typename std::enable_if_t<
|
||||
|
||||
RegId id(VecRegClass, reg);
|
||||
auto val = tc->readVecReg(id);
|
||||
return val.laneView<Float>(lane);
|
||||
return val.as<Float>()[lane];
|
||||
}
|
||||
|
||||
return loadFromStack<Float>(tc, state);
|
||||
@@ -558,7 +558,7 @@ struct Argument<Aapcs32Vfp, HA, typename std::enable_if_t<
|
||||
|
||||
RegId id(VecRegClass, reg);
|
||||
auto val = tc->readVecReg(id);
|
||||
ha[i] = val.laneView<Elem>(lane);
|
||||
ha[i] = val.as<Elem>()[lane];
|
||||
}
|
||||
return ha;
|
||||
}
|
||||
@@ -605,7 +605,7 @@ struct Result<Aapcs32Vfp, HA,
|
||||
|
||||
RegId id(VecRegClass, reg);
|
||||
auto val = tc->readVecReg(id);
|
||||
val.laneView<Elem>(lane) = ha[i];
|
||||
val.as<Elem>()[lane] = ha[i];
|
||||
tc->setVecReg(id, val);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,7 +186,7 @@ struct Argument<Aapcs64, Float, typename std::enable_if_t<
|
||||
{
|
||||
if (state.nsrn <= state.MAX_SRN) {
|
||||
RegId id(VecRegClass, state.nsrn++);
|
||||
return tc->readVecReg(id).laneView<Float, 0>();
|
||||
return tc->readVecReg(id).as<Float>()[0];
|
||||
}
|
||||
|
||||
return loadFromStack<Float>(tc, state);
|
||||
@@ -203,7 +203,7 @@ struct Result<Aapcs64, Float, typename std::enable_if_t<
|
||||
{
|
||||
RegId id(VecRegClass, 0);
|
||||
auto reg = tc->readVecReg(id);
|
||||
reg.laneView<Float, 0>() = f;
|
||||
reg.as<Float>()[0] = f;
|
||||
tc->setVecReg(id, reg);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user