Re: [PATCH, i386] Fix PR55981, atomic store is split in two smaller stores

2013-01-16 Thread Richard Henderson
On 01/16/2013 09:26 AM, Uros Bizjak wrote: 2012-01-16 Uros Bizjak PR target/55981 * config/i386/sync.md (atomic_store): Always generate SWImode store through atomic_store_1. (atomic_store_1): Macroize insn using SWI mode iterator. testsuite/ChangeLog: 2012-01-1

[PATCH, i386] Fix PR55981, atomic store is split in two smaller stores

2013-01-16 Thread Uros Bizjak
Hello! Using plain movdi pattern is not guaranteed to be atomic for all operands. For x86_64, when storing DImode immediate outside SImode range, the compiler splits the move into two separate SImode moves, violating atomic assumptions. Attached patch generates atomic store for all supported inpu