freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] [PATCH] Fix thumb2 inline assembly under LLVM.


From: John Tytgat
Subject: Re: [ft-devel] [PATCH] Fix thumb2 inline assembly under LLVM.
Date: Mon, 23 Sep 2013 12:06:12 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

On 9/23/2013 10:59 AM, Chongyu Zhu wrote:
When using 'ADD' with an immediate operand, the instruction
is actually 'ADD Rd, Rn, #<imm12>', that is, the maximum of
the immediate operand cannot exceed 4095. It will fail to
compile with LLVM.

However, in GCC, due to some legacy compatibility considerations,
'ADD.W' will be automatically emitted when the immediate operand
is larger than 4095.

I guess add.w is also accepted by binutils' gas (used by gcc) so I don't think the test on __clang__ is actually necessary.

John.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]