Re: [PATCH 2/3] add more testcases for AND/OR simplification

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

 




On 06/09/2020 17:38, Ramsay Jones wrote:
[snip]

>> diff --git a/validation/optim/trunc-or-shl0.c b/validation/optim/trunc-or-shl0.c
>> new file mode 100644
>> index 000000000000..4d85a6bd4ec4
>> --- /dev/null
>> +++ b/validation/optim/trunc-or-shl0.c
>> @@ -0,0 +1,19 @@
>> +char trunc_or_shl0a(unsigned a, unsigned b)
>> +{
>> +	return (a << 8) | b;
>> +}
>> +
>> +char trunc_or_shl0b(unsigned a, unsigned b)
>> +{
>> +	return a | (b << 8);
>> +}
>> +
>> +/*
>> + * check-name: trunc-or-shl0
>> + * check-command: test-linearize -Wno-decl $file
>> + * check-known-to-fail
>> + *
>> + * check-output-ignore
>> + * check-output-excludes: or\\.
>> + * check-output-excludes: shl\\.
> 
> Hmm, I can't see an optimization for these two! :(
> Care to explain just what you expect? (maybe with an
> '*.expected' file?)
> 

Ah, so I only just noticed the 'char' return types! :-D

OK.

ATB,
Ramsay Jones




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux