+2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/48154
+ * config/i386/i386.c (ix86_builtin_vectorized_function): Check
+ TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
+
2011-03-16 Jeff Law <law@redhat.com>
* tree-vrp.c (identify_jump_threads): Slightly simplify type
case BUILT_IN_FLOOR:
/* The round insn does not trap on denormals. */
- if (flag_trapping_math)
+ if (flag_trapping_math || !TARGET_ROUND)
break;
if (out_mode == DFmode && in_mode == DFmode)
case BUILT_IN_FLOORF:
/* The round insn does not trap on denormals. */
- if (flag_trapping_math)
+ if (flag_trapping_math || !TARGET_ROUND)
break;
if (out_mode == SFmode && in_mode == SFmode)
case BUILT_IN_CEIL:
/* The round insn does not trap on denormals. */
- if (flag_trapping_math)
+ if (flag_trapping_math || !TARGET_ROUND)
break;
if (out_mode == DFmode && in_mode == DFmode)
case BUILT_IN_CEILF:
/* The round insn does not trap on denormals. */
- if (flag_trapping_math)
+ if (flag_trapping_math || !TARGET_ROUND)
break;
if (out_mode == SFmode && in_mode == SFmode)
case BUILT_IN_TRUNC:
/* The round insn does not trap on denormals. */
- if (flag_trapping_math)
+ if (flag_trapping_math || !TARGET_ROUND)
break;
if (out_mode == DFmode && in_mode == DFmode)
case BUILT_IN_TRUNCF:
/* The round insn does not trap on denormals. */
- if (flag_trapping_math)
+ if (flag_trapping_math || !TARGET_ROUND)
break;
if (out_mode == SFmode && in_mode == SFmode)
case BUILT_IN_RINT:
/* The round insn does not trap on denormals. */
- if (flag_trapping_math)
+ if (flag_trapping_math || !TARGET_ROUND)
break;
if (out_mode == DFmode && in_mode == DFmode)
case BUILT_IN_RINTF:
/* The round insn does not trap on denormals. */
- if (flag_trapping_math)
+ if (flag_trapping_math || !TARGET_ROUND)
break;
if (out_mode == SFmode && in_mode == SFmode)