re PR target/40934 (ICE in get_hard_regnum, at reg-stack.c:741)
2009-08-14 Paolo Bonzini <bonzini@gnu.org> PR target/40934 * config/i386/i386.c (ix86_fp_comparison_strategy): Only enable/disable sahf at function granularity. gcc/testsuite: 2009-08-14 Paolo Bonzini <bonzini@gnu.org> PR target/40934 * gcc.target/i386/pr40934.c: New. From-SVN: r150754
This commit is contained in:
parent
94aca67aaf
commit
371015a84a
@ -1,3 +1,9 @@
|
||||
2009-08-14 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
PR target/40934
|
||||
* config/i386/i386.c (ix86_fp_comparison_strategy):
|
||||
Only enable/disable sahf at function granularity.
|
||||
|
||||
2009-08-14 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
PR rtl-optimization/41064
|
||||
|
@ -14594,7 +14594,7 @@ ix86_fp_comparison_strategy (enum rtx_code code ATTRIBUTE_UNUSED)
|
||||
if (TARGET_CMOVE)
|
||||
return IX86_FPCMP_COMI;
|
||||
|
||||
if (TARGET_SAHF && (TARGET_USE_SAHF || optimize_insn_for_size_p ()))
|
||||
if (TARGET_SAHF && (TARGET_USE_SAHF || optimize_function_for_size_p (cfun)))
|
||||
return IX86_FPCMP_SAHF;
|
||||
|
||||
return IX86_FPCMP_ARITH;
|
||||
|
@ -1,3 +1,8 @@
|
||||
2009-08-14 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
PR target/40934
|
||||
* gcc.target/i386/pr40934.c: New.
|
||||
|
||||
2009-08-14 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
PR target/41019
|
||||
|
15
gcc/testsuite/gcc.target/i386/pr40934.c
Normal file
15
gcc/testsuite/gcc.target/i386/pr40934.c
Normal file
@ -0,0 +1,15 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target ilp32 } */
|
||||
/* { dg-options "-O2 -march=i586 -ffast-math" } */
|
||||
|
||||
extern double host_frametime;
|
||||
extern float pitchvel;
|
||||
V_DriftPitch (float delta, float move)
|
||||
{
|
||||
if (!delta)
|
||||
move = host_frametime;
|
||||
if (delta > 0)
|
||||
;
|
||||
else if (delta < 0 && move > -delta)
|
||||
pitchvel = 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user