[PATCH] R600: Handle -mcpu option

Dmitri Gribenko gribozavr at gmail.com
Wed Mar 13 14:17:40 PDT 2013


On Wed, Mar 13, 2013 at 11:08 PM, Tom Stellard <tom at stellard.net> wrote:
> On Tue, Mar 12, 2013 at 10:45:27PM +0200, Dmitri Gribenko wrote:
>> On Tue, Mar 12, 2013 at 10:21 PM, Tom Stellard <tom at stellard.net> wrote:
>> >  lib/Driver/Tools.cpp |   19 +++++++++++++++++++
>> >  lib/Driver/Tools.h   |    1 +
>>
>> Hi Tom,
>>
>> Is it possible to add tests?
>>
>
> Sure, here is an updated patch with a test case.

You should FileCheck against the generated command lines directly.
You need to invoke clang with -### argument for that.  See
test/Driver/mips-features.c for an example.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list