Just found 2 issues in apple’s assembler for arm64

1) The classic ‘@‘ comment indicator is not recognized in -arch arm64 mode. Both ‘;‘ and ‘//‘ are permitted. I remembered ‘@‘ was acceptable in armv7 age. So the world changes so fast…

2) As ARM’s instruction reference manual, the instruction ‘movi‘ has a format as

MOVI Vn.<T>, #uimm8{, LSL #shift}

But as reported error if we omitted last part. So to make assembler work, I have to append a ‘LSL #0’ to the end. Feel somewhat stupid, for both the assembler and myself 🙂

One thought on “Just found 2 issues in apple’s assembler for arm64”

  1. OK. Tried armv7 again. In armv7 mode, only ‘@’ is permitted. Both ‘;’ and ‘//’ are illegal. Funny apple.

Leave a Reply

Your email address will not be published. Required fields are marked *