Re: Fix vectorizable_live_operation handling of vector booleans

2017-09-15 Thread Jeff Law
On 09/15/2017 04:45 AM, Richard Sandiford wrote: > vectorizable_live_operation needs to use BIT_FIELD_REF to extract one > element of a vector. For a packed vector boolean type, the number of > bits to extract should be taken from TYPE_PRECISION rather than TYPE_SIZE. > > This is shown by existin

Fix vectorizable_live_operation handling of vector booleans

2017-09-15 Thread Richard Sandiford
vectorizable_live_operation needs to use BIT_FIELD_REF to extract one element of a vector. For a packed vector boolean type, the number of bits to extract should be taken from TYPE_PRECISION rather than TYPE_SIZE. This is shown by existing tests once SVE is added. Tested on aarch64-linux-gnu, x8