Re: [PATCH, rs6000] Fix invalid type returned from builtin vec_extract

2019-01-28 Thread Segher Boessenkool
Hi Kelvin, On Mon, Jan 28, 2019 at 12:11:34PM -0600, Kelvin Nilsen wrote: > An error in the type returned from the built-in vec_extract function was > recently reported, as represented in the following sample program: [ snip ] > The fix is to coerce the result of vec_extract so that it matches

[PATCH, rs6000] Fix invalid type returned from builtin vec_extract

2019-01-28 Thread Kelvin Nilsen
An error in the type returned from the built-in vec_extract function was recently reported, as represented in the following sample program: #include #include int main() { unsigned char uc = 0xf6; printf("explicit cast: %x\n", (int)uc); vector unsigned char v =