Re: Check for a supported comparison when using EXTRACT_LAST_REDUCTION

2019-12-28 Thread Richard Biener
On December 28, 2019 5:29:20 PM GMT+01:00, Richard Sandiford wrote: >The EXTRACT_LAST_REDUCTION handling needs to generate a separate >comparison instruction that feeds the vector mask argument of the >IFN_EXTRACT_LAST call. We weren't checking whether that comparison >was supported, leading to

Check for a supported comparison when using EXTRACT_LAST_REDUCTION

2019-12-28 Thread Richard Sandiford
The EXTRACT_LAST_REDUCTION handling needs to generate a separate comparison instruction that feeds the vector mask argument of the IFN_EXTRACT_LAST call. We weren't checking whether that comparison was supported, leading to an ICE on the testcase. Tested on aarch64-linux-gnu and x86_64-linux-gnu.