This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] [4.2 projects] vectorize type conversions - 5/6



+   scalar_dest = TREE_OPERAND (stmt, 0);
+   scalar_type = TREE_TYPE (scalar_dest);
+   vectype_out = get_vectype_for_scalar_type (scalar_type);
+   nunits_out = TYPE_VECTOR_SUBPARTS (vectype_out);
+   if (nunits_in != nunits_out/2) /* FORNOW */

Spacing 'nunits_out / 2'.  What if nunits_in == 2 and nunits_out == 5?
Perhaps it's safer to check 'nunits_in * 2 == nunits_out'.

nunits is always a power of two.


Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]