Closed Bug 1674965 Opened 4 years ago Closed 4 years ago

Create test harness for SIMD code generation tests

Categories

(Core :: JavaScript: WebAssembly, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
84 Branch
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.

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
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: