Closed
Bug 1041648
Opened 10 years ago
Closed 10 years ago
Implement float32x4 clamp test case
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: ProgramFOX, Assigned: ProgramFOX)
Details
Attachments
(1 file, 1 obsolete file)
1.48 KB,
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0 (Beta/Release)
Build ID: 20140605174243
Steps to reproduce:
I looked at the test case for the SIMD float32x4 clamp method, in /js/src/tests/ecma_6/TypedObject/simd.
Actual results:
The content of that file was equal to the content of the float32x4 add method test case.
Expected results:
So, a real clamp test case should be implemented now.
Assignee | ||
Updated•10 years ago
|
Severity: normal → minor
OS: Windows 7 → All
Assignee | ||
Comment 1•10 years ago
|
||
Proposed patch for this bug. Test case data taken from the SIMD polyfill, from ecmascript_simd_tests.js.
Attachment #8459706 -
Flags: review?(luke)
Comment 2•10 years ago
|
||
Comment on attachment 8459706 [details] [diff] [review]
bug-1041648-float32x4-clamp-testcase.diff
Probably want Benjamin for this one.
Attachment #8459706 -
Flags: review?(luke) → review?(benj)
Comment 3•10 years ago
|
||
Comment on attachment 8459706 [details] [diff] [review]
bug-1041648-float32x4-clamp-testcase.diff
Review of attachment 8459706 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks a lot for doing this! Could you add just one test case please?
::: js/src/tests/ecma_6/TypedObject/simd/float32x4clamp.js
@@ +7,5 @@
>
> function test() {
> print(BUGNUMBER + ": " + summary);
>
> // FIXME -- Bug 948379: Amend to check for correctness of border cases.
Could you remove this comment and add a test that effectively checks for float32 semantics?
Something like the same test as you have, but at some point you'd have a number which cannot be represented precisely as a float32 (e.g. 13.37), and in the assertEq, you'd test for Math.fround(13.37), which is the float32 rounding of 13.37.
Attachment #8459706 -
Flags: review?(benj) → feedback+
Assignee | ||
Comment 4•10 years ago
|
||
Done, I have replaced my previous test case with this one containing border cases.
Attachment #8459706 -
Attachment is obsolete: true
Attachment #8460123 -
Flags: review?(benj)
Comment 5•10 years ago
|
||
Comment on attachment 8460123 [details] [diff] [review]
Added float32x4 clamp test case
Review of attachment 8460123 [details] [diff] [review]:
-----------------------------------------------------------------
Great, thanks a lot! I will push it to tryserver for you.
Attachment #8460123 -
Flags: review?(benj) → review+
Comment 6•10 years ago
|
||
Assignee: nobody → programfox
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 7•10 years ago
|
||
Looks pretty green to me, thanks again!
https://hg.mozilla.org/integration/mozilla-inbound/rev/3bdb961fd6d1
Comment 8•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Updated•10 years ago
|
QA Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•