-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Fix IntRange speculation for zExt32
https://bugs.webkit.org/show_bug.cgi?id=256573 rdar://109134454 Reviewed by Yusuke Suzuki. Previously, the IntRange speculation in B3ReduceStrength for node zExt32 is wrong. This patch fixes this issue. * JSTests/stress/regress-109134454.js: Added. * Source/JavaScriptCore/b3/B3ReduceStrength.cpp: Originally-landed-as: 259548.761@safari-7615-branch (7760669). rdar://109134454 Canonical link: https://commits.webkit.org/266443@main
- Loading branch information
1 parent
6e7e654
commit 35a6bec
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//@ runDefault("--useConcurrentJIT=0", "--forceWeakRandomSeed=1", "--jitPolicyScale=0") | ||
|
||
for (let i = 0; i < 8; i++) { | ||
for (let j = 0; j < 8; j++) { | ||
const t1 = j + 2147483649; | ||
const t2 = (2147483649 >>> (t1 & i)) - 2147483649; | ||
const t3 = t2 * t1; | ||
const t4 = t2 + t3; | ||
if (i == 3 && j === 0) { | ||
if (t3 !== -2305843012434919400) | ||
throw new Error("bad"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters