Steve Ellcey <sell...@cavium.com> writes: > On Fri, 2018-02-09 at 17:15 +0000, Richard Sandiford wrote: >> >> >> If the code you're adding is inherently specific to Advanced SIMD >> (not sure, but guessing yes based on this being aarch64-builtins.c) >> then like Kugan says, using to_constant is OK. >> >> Which code are you copying over? >> >> Thanks, >> Richard > > OK, I found the is_constant member function and used that. I was > looking at the i386 code that generates calls to libmvec. Someone > here wrote vector sin/cos functions for V2DF and I want to test them > out to see if they would work with GCC/libmvec on aarch64.
OK, so is this in aarch64_builtin_vectorized_function? to_constant isn't valid there because the code isn't specific to Advanced SIMD. The way to check for V2xx is: known_eq (TYPE_VECTOR_SUBPARTS (...), 2U) Thanks, Richard