From 0c91a67825d702bc1968faac363fd6e8051548a0 Mon Sep 17 00:00:00 2001 From: Chris Demetriou Date: Tue, 1 Sep 2009 09:46:10 -0700 Subject: [PATCH] i386.c (ix86_vectorize_builtin_conversion): Never vectorize if not TARGET_SSE2. * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never vectorize if not TARGET_SSE2. From-SVN: r151276 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e00ce5fa2a4..0b7bdc3cdb1e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-08-31 Chris Demetriou + + * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never + vectorize if not TARGET_SSE2. + 2009-08-28 Uros Bizjak * global.c (global_alloc): Do not calculate bitmatrix percentages diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index a759028b1c8a..d9f9b8cd3e44 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -21529,7 +21529,7 @@ ix86_veclibabi_acml (enum built_in_function fn, tree type_out, tree type_in) static tree ix86_vectorize_builtin_conversion (unsigned int code, tree type) { - if (TREE_CODE (type) != VECTOR_TYPE + if (!TARGET_SSE2 || TREE_CODE (type) != VECTOR_TYPE /* There are only conversions from/to signed integers. */ || TYPE_UNSIGNED (TREE_TYPE (type))) return NULL_TREE; -- 2.47.2