Sign in
dawn
/
dawn
/
a532ca42a219ce986809727d98f480109d07653f
/
.
/
test
/
tint
/
expressions
/
binary
/
div
/
scalar-scalar
/
i32.wgsl.expected.ir.fxc.hlsl
blob: 3b819cd7e346b3b954c56cdec17e77b4661f6649 [
file
] [
log
] [
blame
]
int
tint_div_i32
(
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
=
2
;
int
r
=
tint_div_i32
(
a
,
b
);
}