Create test harness for SIMD code generation tests
Categories
(Core :: JavaScript: WebAssembly, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox84 | --- | fixed |
People
(Reporter: lth, Assigned: lth)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The SIMD test cases include many tests that ensure that specific code is emitted in certain circumstances. These tests have a lot of infrastructure in common; it should be factored, and the tests rewritten to use it.
Assignee | ||
Comment 1•4 years ago
|
||
The commonalities of the x64 code generation test cases are factored
into lib/codegen-x64-test.js and that file is included by the test
cases.
The harness allows the expected patterns in the test cases to be much
smaller. The harness adds the pattern prefix and suffix during
preprocessing, adds the address prefix for each line, and makes
whitespace matching more flexible.
Additionally the harness exports some variables (representing
subpatterns) that can be used within the expected patterns to express
common phrases, such as RIP-relative addresses.
Pushed by lhansen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/30e91620ed0c Test harness for code generation tests. r=rhunt
Comment 3•4 years ago
|
||
bugherder |
Description
•