Repository navigation
Commit f04bdad
[vm, compiler] Fold Float32x4/Float64x2 min and max with Dart semantics
Constant folding of the RISC-V per-lane min/max used C fmin/fmax, which
drop NaNs and do not order -0.0 below 0.0.
TEST=lib/typed_data/float32x4_clamp_test lib/typed_data/float64x2_clamp_test
Fixes: #64546
Issue: #64170
Cq-Include-Trybots: luci.dart.try:vm-linux-debug-simriscv64-try,vm-aot-linux-debug-simriscv64-try
Change-Id: Ieed8880e6d4f736ea07e9c2918616ea1d08ba83e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/562661
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
Auto-Submit: Modestas Valauskas <valauskasmodestas@gmail.com>
Reviewed-by: Alexander Aprelev <aam@google.com>1 parent aa93a96 commit f04bdad
1 file changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
244 | 254 | | |
245 | 255 | | |
246 | 256 | | |
| |||
256 | 266 | | |
257 | 267 | | |
258 | 268 | | |
259 | | - | |
| 269 | + | |
260 | 270 | | |
261 | | - | |
| 271 | + | |
262 | 272 | | |
263 | 273 | | |
264 | 274 | | |
| |||
275 | 285 | | |
276 | 286 | | |
277 | 287 | | |
278 | | - | |
| 288 | + | |
| 289 | + | |
279 | 290 | | |
280 | | - | |
| 291 | + | |
| 292 | + | |
281 | 293 | | |
282 | 294 | | |
283 | 295 | | |
| |||
0 commit comments