Sign in
dawn
/
dawn
/
32363954436092f4d0c5f2c8dd5f1fa8f2ff00af
/
.
/
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
);
}