On Mon, Jan 16, 2017 at 12:41:29PM +0100, Jakub Jelinek wrote: > Or, as a switch it could be of the form: > switch (INSN_CODE (insn)) > { > #ifdef HAVE_ctrsi_internal1 > case CODE_FOR_ctrsi_internal1: > case CODE_FOR_ctrsi_internal2: > case CODE_FOR_ctrsi_internal3: > case CODE_FOR_ctrsi_internal4: > #endif > #ifdef HAVE_ctrdi_internal1 > case CODE_FOR_ctrdi_internal1: > case CODE_FOR_ctrdi_internal2: > case CODE_FOR_ctrdi_internal3: > case CODE_FOR_ctrdi_internal4: > #endif > return false; > default: > break; > }
I didn't think of that. Segher and I discussed the problem on #gcc and both independently decided an if() was the obvious fix. -- Alan Modra Australia Development Lab, IBM