forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3a990a1
committed
Lobotomize test for float -Inf ^ -2, at least for now.
Per POSIX this case should produce +0, but buildfarm member fossa(with icc (ICC) 19.0.5.281 20190815) is reporting -0. icc has aboatload of unsafe floating-point optimizations, with a correspondingboatload of not-too-well-documented compiler switches, and it seems ourdefault use of "-mp1" isn't whacking it hard enough to keep it frommisoptimizing the stanza in dpow() that checks whether y is odd.There's nothing wrong with that code (seeing that no other buildfarmmember has trouble with it), so I'm content to blame this on thecompiler. But without access to the compiler I'm not going to guess atwhat switches might be needed to fix it. For now, tweak the test caseso it will accept either -0 or +0 as a correct answer.Discussion:https://postgr.es/m/E1jkyFX-0005RR-1Q@gemulon.postgresql.org1 parenteab6e46 commit3a990a1
2 files changed
+9
-5
lines changedLines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
501 | 501 |
| |
502 | 502 |
| |
503 | 503 |
| |
504 |
| - | |
505 |
| - | |
506 |
| - | |
507 |
| - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
508 | 510 |
| |
509 | 511 |
| |
510 | 512 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
144 | 146 |
| |
145 | 147 |
| |
146 | 148 |
| |
|
0 commit comments
Comments
(0)