@@ -4392,7 +4392,8 @@ vectorized_internal_fn_supported_p (internal_fn ifn, tree type)
return direct_internal_fn_supported_p (ifn, type, OPTIMIZE_FOR_SPEED);
scalar_mode smode;
- if (!is_a <scalar_mode> (TYPE_MODE (type), &smode))
+ if (VECTOR_TYPE_P (type)
+ || !is_a <scalar_mode> (TYPE_MODE (type), &smode))
return false;
machine_mode vmode = targetm.vectorize.preferred_simd_mode (smode);
new file mode 100644
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-O -mgeneral-regs-only -msse" } */
+
+typedef int __attribute__((__vector_size__ (8))) V;
+V a, b;
+int c;
+
+void
+foo (void)
+{
+ b = 0 != a | b << c;
+}