Resolve pr44194-1.c failure by refining scan-rtl-dump-not pattern

Renlin Li renlin.li@arm.com
Fri Jan 10 11:28:00 GMT 2014


Hi Eric,

Thank you for your suggestion!
I have made the adjustment and test it. Please check the new attachment.

Regards,
Renlin Li

On 10/01/14 10:42, Eric Botcazou wrote:
>> This patch will resolve testsuite/gcc.dg/pr44194-1.c failure observed in
>> aarch64 target by refining the second scan-rtl-dump-not pattern.
>>
>> For aarch64 target, the following barrier is generated which will
>> exactly match the current pattern
>> "insn \[^\n\]*set \\(mem". This is undesired. By adjusting the pattern,
>> this scenario is excluded.
>>
>> (insn 29 28 30 (set (mem:BLK (scratch) [0  A8])
>>           (unspec:BLK [
>>                   (reg/f:DI 31 sp)
>>                   (reg/f:DI 29 x29)
>>               ] UNSPEC_PRLG_STK)) pr44194-1.c:10 704 {stack_tie}
>>        (nil))
> Please use "scratch" instead of "stack_tie" as marker, it's more general.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr44194-1.c
Type: text/x-csrc
Size: 562 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140110/0e8834a7/attachment.bin>


More information about the Gcc-patches mailing list