Friday, 17 May 2013

[gccsdk] Asasm bug

Asasm seems to be assembling PKH instructions incorrectly when no shift is
specified:

$ cat << EOF > test.s
AREA a, CODE, READONLY
PKHBT r1,r2,r3
PKHBT r1,r2,r3,LSL#4
PKHTB r1,r2,r3
PKHTB r1,r2,r3,ASR#4
END
EOF
$ asasm -o test.o test.s
$ objdump -d test.o

test.o: file format elf32-littlearm


Disassembly of section a:

00000000 <a>:
0: e6821013 pkhbt r1, r2, r3
4: e6821213 pkhbt r1, r2, r3, lsl #4
8: e6821013 pkhbt r1, r2, r3
c: e6821253 pkhtb r1, r2, r3, asr #4


Ben

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment