Sign in
dawn
/
dawn
/
31090e30968e2f412352448fd4b0a01cc47395c0
/
.
/
test
/
tint
/
expressions
/
binary
/
mod_by_zero
/
by_constant
/
scalar-scalar
/
i32.wgsl.expected.fxc.hlsl
blob: a5f5597b343707b832a7b6d47b430c8192a4b0a4 [
file
] [
log
] [
blame
]
int
tint_mod
(
int
lhs
,
int
rhs
)
{
return
(
lhs
%
(((
rhs
==
0
)
|
((
lhs
==
-
2147483648
)
&
(
rhs
==
-
1
)))
?
1
:
rhs
));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
const
int
a
=
1
;
const
int
b
=
0
;
const
int
r
=
tint_mod
(
a
,
b
);
return
;
}