[cfe-commits] r132319 - in /cfe/trunk/test: Makefile Unit/lit.site.cfg.in lit.site.cfg.in

Chandler Carruth chandlerc at google.com
Tue May 31 00:05:17 PDT 2011


On Mon, May 30, 2011 at 10:18 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Mon, May 30, 2011 at 9:36 PM, Chandler Carruth <chandlerc at google.com> wrote:
>> On Mon, May 30, 2011 at 5:29 PM, Galina Kistanova <gkistanova at gmail.com> wrote:
>>> Preparations for separating target-specific clang tests.
>>
>> What's the intended use of this? What problem are you solving? We
>> already have the ability to use target-specific triples in tests.
>
> I assume this is intended to fix cases where clang tests try to
> generate x86 code... we have maybe 50 or so clang tests which do that.
>  If you try to build without the x86 backend (e.g. on ARM), the tests
> fail with "error: unable to create target: 'No available targets are
> compatible with this triple, see -version for the available
> targets.'".  See
> http://google1.osuosl.org:8011/builders/clang-native-arm-cortex-a9 .

Any reason something like XTARGET won't work here? I'm not terribly
familiar with how that's implemented I admit, it just seems nicer than
a whole separate tree.

Also, I thought these tests were essentially on the way out in favor
of directly testing the LLVM IR whenever possible. I can imagine a few
needing to remain, but hopefully few enough to make a whole separate
tree unnecessary... But maybe I'm just not thinking of the particular
architecture-specific things needing testing.




More information about the cfe-commits mailing list