From 4a4256626644b5e413cfb1c228d396d27364030b Mon Sep 17 00:00:00 2001 From: Charles Forsyth Date: Tue, 4 Jun 2013 08:30:04 +0000 Subject: adjust code to size of Runes --- libinterp/comp-arm.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libinterp/comp-arm.c') diff --git a/libinterp/comp-arm.c b/libinterp/comp-arm.c index 57ab31d4..a7445bd7 100644 --- a/libinterp/comp-arm.c +++ b/libinterp/comp-arm.c @@ -1564,8 +1564,13 @@ comp(Inst *i) BCKI(i->reg, RA0); } else { LDRB(GE, RA1, RA3, 0, RA2); - DP(LT, Mov, 0, RA2, (1<<3), RA2); - LDRH(LT, RA1, RA3, RA2); + if(sizeof(Rune) == 4){ + DP(LT, Mov, 0, RA2, (2<<3), RA2); + LDRW(LT, RA1, RA3, RA2); + }else{ + DP(LT, Mov, 0, RA2, (1<<3), RA2); + LDRH(LT, RA1, RA3, RA2); + } if(bflag) BCK(RA2, RA0); } -- cgit v1.2.3