On Mon, Jan 14, 2013 at 7:06 PM, Andi Kleen <a...@firstfloor.org> wrote: >> This cannot happen, we reject code that sets both __HLE* flags. > > BTW I found more HLE bugs, it looks like some of the fetch_op_* > patterns do not match always and fall back to cmpxchg, which > does not generate HLE code correctly. Not fully sure what's > wrong, can you spot any obvious problems? You changed the > > (define_insn "atomic_<logic><mode>" > > pattern last.
I don't think this is a target problem, these insns work as expected and are covered by extensive testsuite in gcc.target/i386/hle-*.c. Uros.