Sign in
dawn
/
dawn
/
55b8561232dcdb3351da1233d5a3bb710734eda4
/
.
/
test
/
tint
/
expressions
/
binary
/
div_by_zero
/
by_constant
/
scalar-scalar
/
i32.wgsl.expected.fxc.hlsl
blob: c5e3c7d7f0c1c6994ed141e322d30c45f5ca2d0b [
file
] [
log
] [
blame
]
int
tint_div
(
int
lhs
,
int
rhs
)
{
return
(
lhs
/
(((
rhs
==
0
)
|
((
lhs
==
-
2147483648
)
&
(
rhs
==
-
1
)))
?
1
:
rhs
));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
int
a
=
1
;
int
b
=
0
;
int
r
=
tint_div
(
a
,
b
);
return
;
}