Re: [PATCH][AArch64] PR/64134: Make aarch64_expand_vector_init use 'ins' more often

2015-04-18 Thread Richard Earnshaw
On 17/04/15 16:48, Alan Lawrence wrote: > From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64134, testcase > > #define vector __attribute__((vector_size(16))) > > float a; float b; > vector float fb(void) { return (vector float){ 0,0,b,a};} > > currently produces (correct, but suboptimal): > >

[PATCH][AArch64] PR/64134: Make aarch64_expand_vector_init use 'ins' more often

2015-04-17 Thread Alan Lawrence
From https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64134, testcase #define vector __attribute__((vector_size(16))) float a; float b; vector float fb(void) { return (vector float){ 0,0,b,a};} currently produces (correct, but suboptimal): fb: fmovs0, wzr adrpx1, b