aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPierre Langlois <pierre.langlois@arm.com>2016-08-23 14:45:02 +0100
committerPierre Langlois <pierre.langlois@arm.com>2016-08-24 10:22:43 +0100
commit71bca307f4e94afdbc753e02c101b042cd218b4a (patch)
tree67b163bcd5150f8170ef583d168179e1f47e8883 /examples
parent0d2a3d5456e4464fd18cfe534c62b93e129f2637 (diff)
Use a length argument when constructing S and D register lists
This patch changes the SRegisterList and DRegisterList constructors to take a length argument instead of a second register to represent a list. Change-Id: I87cfbe09d1d80d213fc8a37bdfabca884a7eefa2
Diffstat (limited to 'examples')
-rw-r--r--examples/aarch32/pi.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/aarch32/pi.cc b/examples/aarch32/pi.cc
index e888f142..4ed490a6 100644
--- a/examples/aarch32/pi.cc
+++ b/examples/aarch32/pi.cc
@@ -34,7 +34,7 @@ void GenerateApproximatePi(MacroAssembler* masm) {
// pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... + (-1)^n / (2n + 1)
__ Cmp(r0, 0);
__ Bx(eq, lr);
- __ Vpush(Untyped64, DRegisterList(d8, d15));
+ __ Vpush(Untyped64, DRegisterList(d8, 8));
__ Vldr(d0, 1.0);
__ Vldr(d1, 3.0);
__ Vldr(d2, 5.0);
@@ -75,7 +75,7 @@ void GenerateApproximatePi(MacroAssembler* masm) {
__ Vadd(F64, d11, d11, d13);
__ Vsub(F64, d10, d10, d11);
__ Vmul(F64, d0, d10, d4);
- __ Vpop(Untyped64, DRegisterList(d8, d15));
+ __ Vpop(Untyped64, DRegisterList(d8, 8));
__ Bx(lr);
}