[llvm] r223113 - Add support for ARM modified-immediate assembly syntax.

Asiri Rathnayake asiri.rathnayake at arm.com
Thu Feb 12 01:46:24 PST 2015


Hi All,

Sorry about this, completely missed this thread. This looks like something that should just work. I'll do a fix.

Thanks.

- Asiri

-----Original Message-----
From: llvm-commits-bounces at cs.uiuc.edu [mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Tim Northover
Sent: 12 February 2015 02:51
To: Steven Wu
Cc: llvm-commits
Subject: Re: [llvm] r223113 - Add support for ARM modified-immediate assembly syntax.

On 11 February 2015 at 15:50, Steven Wu <stevenwu at apple.com> wrote:
> Couldn’t find anything related to tilde or how an expression gets 
> evaluated to an immediate in ARM manual. Any authority over ARM assembly language?

I basically agree with Jim, but our ideas aren't really based on the manual. The ARM manual says what immediates are permitted, just how you get to write them is largely down to the individual assembler.
MASM might let you write ffh, GAS 0xff or ~0xffffff00 (or whatever else).

So what I really think are two things:
  + In GAS syntax it's reasonable to parse an expression and interpret ~ as NOT.
  + For instructions operating on 32-bit registers it's reasonable for that NOT to produce a 32-bit result by default.

Cheers.

Tim.

_______________________________________________
llvm-commits mailing list
llvm-commits at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits







More information about the llvm-commits mailing list