Sign in
dawn
/
dawn
/
6ad78e82fbd5ae3128df32e467221326685d9d0d
/
.
/
test
/
tint
/
expressions
/
binary
/
div
/
scalar-scalar
/
i32.wgsl.expected.ir.dxc.hlsl
blob: a6a19cd7858648e06035f6ad6509a060f3106a90 [
file
] [
log
] [
blame
]
int
tint_div_i32
(
int
lhs
,
int
rhs
)
{
return
(
lhs
/
((((
rhs
==
int
(
0
))
|
((
lhs
==
int
(-
2147483648
))
&
(
rhs
==
int
(-
1
)))))
?
(
int
(
1
))
:
(
rhs
)));
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
int
a
=
int
(
1
);
int
b
=
int
(
2
);
int
r
=
tint_div_i32
(
a
,
b
);
}