On 06/23/2011 03:50 PM, Andrew MacLeod wrote: > + (define_expand "sync_mem_load<mode>" > + [(match_operand:SWI 0 "register_operand" "") ;; output > + (match_operand:SWI 1 "memory_operand" "") ;; memory > + (match_operand:SI 2 "const_int_operand" "")] ;; memory model > + "" > + { > + if (INTVAL (operands[2]) == MEMMODEL_ACQUIRE || > + INTVAL (operands[2]) == MEMMODEL_SEQ_CST)
Oh, and I suspect all of these will be easier to debug with enum memmodel mm = (enum memmodel) INTVAL (operands[2]); if (mm == ...) r~