gcc/testsuite/gcc.target/i386/pr40934.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target ia32 } */ |
| 3 | /* { dg-options "-O2 -march=i586 -ffast-math" } */ |
| 4 | |
| 5 | extern double host_frametime; |
| 6 | extern float pitchvel; |
| 7 | void V_DriftPitch (float delta, float move) |
| 8 | { |
| 9 | if (!delta) |
| 10 | move = host_frametime; |
| 11 | if (delta > 0) |
| 12 | ; |
| 13 | else if (delta < 0 && move > -delta) |
| 14 | pitchvel = 0; |
| 15 | } |