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.


_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to