[cfe-commits] [PATCH] Use more general inline asm register constraints in tests

Simon Atanasyan satanasyan at mips.com
Mon May 21 01:23:48 PDT 2012


Hi,

The following two test cases from clang test suite are failed on MIPS:

Analysis/nullptr.cpp
CodeGen/Generic/asm-large-immediate.ll

The reason is inline asm constraint "=a" (means %eax, %ax, %al) used
in these tests. This constraint is unsupported on MIPS. I think this
constraint can be safely replaced by the more general one "=r" (means
any general purpose register). The attached patch does that for both
test cases.

Are there any objections?

--
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asm-cons.patch
Type: application/octet-stream
Size: 925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120521/59c6a0e4/attachment.obj>


More information about the cfe-commits mailing list