This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Commit 49c0d8a
Lars T Hansen
Bug 1669964 - Fix code generation for pmin/pmax on x86. r=jseward
pmin and pmax handled NaN incorrectly because the wonky semantics of
MINPS and MAXPS require arguments to be reversed to properly handle
NaN for these wasm SIMD instructions.
We fix this the expedient way: we keep the same masm abstraction and
introduce moves to rearrange the arguments. This should be optimized
eventually and a bug will be filed for that now.
Differential Revision: https://phabricator.services.mozilla.com/D929271 parent dec2b41 commit 49c0d8a
2 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1981 | 1981 | | |
1982 | 1982 | | |
1983 | 1983 | | |
1984 | | - | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
1985 | 1988 | | |
1986 | 1989 | | |
1987 | 1990 | | |
1988 | 1991 | | |
1989 | | - | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
1990 | 1996 | | |
1991 | 1997 | | |
1992 | 1998 | | |
1993 | 1999 | | |
1994 | 2000 | | |
1995 | 2001 | | |
1996 | | - | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
1997 | 2006 | | |
1998 | 2007 | | |
1999 | 2008 | | |
2000 | 2009 | | |
2001 | | - | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
2002 | 2014 | | |
2003 | 2015 | | |
2004 | 2016 | | |
| |||
0 commit comments