Summary: | [WHLSL] Implement uint/int div safety and add tests | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Saam Barati <saam> | ||||
Component: | WebGPU | Assignee: | Saam Barati <saam> | ||||
Status: | RESOLVED WONTFIX | ||||||
Severity: | Normal | CC: | dino, fpizlo, jonlee, justin_fan, mmaxfield, rmorisset | ||||
Priority: | P1 | ||||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 195681 | ||||||
Attachments: |
|
Description
Saam Barati
2019-07-08 17:22:30 PDT
and ``` program = "int foo(int x, int y) { return x / y; }"; assert_equals(await callIntFunction(program, "foo", [makeInt(7), makeInt(2)]), 3); ``` I shall do this This seems to work now. I'll land tests. (In reply to Saam Barati from comment #3) > This seems to work now. I'll land tests. Though maybe we need to do things to make the div safe Created attachment 374551 [details]
WIP
WHLSL is no longer relevant. |