[PATCH] PowerPC fsel PR5217

David Edelsohn dje@watson.ibm.com
Sun Feb 3 22:45:00 GMT 2002


>>>>> Geoff Keating writes:

Geoff> tmp = gen_rtx_fmt_ee (code, GET_MODE (if_info->cond), cmp_a, cmp_b);
Geoff> tmp = gen_rtx_IF_THEN_ELSE (GET_MODE (x), tmp, vtrue, vfalse);
Geoff> tmp = gen_rtx_SET (VOIDmode, x, tmp);

Geoff> which generates an IF_THEN_ELSE with the same mode as the destination
Geoff> of the SET.

	combine.c uses VOIDmode and cselib.c appears to use the mode of
the source:

            src = gen_rtx_IF_THEN_ELSE (GET_MODE (src), cond, src, dest);

which is what my pattern matches.

	So the question is which way do we want to canonicalize this?
Then we can document it and match the decision in the PowerPC port.

David



More information about the Gcc-patches mailing list