Sign in
dawn
/
dawn
/
001051698e7022fcfa11008e93ffbfa739c23ac1
/
.
/
test
/
tint
/
expressions
/
binary
/
div
/
scalar-scalar
/
i32.wgsl.expected.ir.fxc.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
);
}