Sign in
dawn
/
dawn
/
2dddb19d79966255785818407e8fcf53ec0f0d87
/
.
/
test
/
tint
/
bug
/
tint
/
1083.wgsl.expected.fxc.hlsl
blob: 2ce1859cecedbcd9a9a0cbe8d7eb8f4c792ab259 [
file
] [
log
] [
blame
]
int
tint_div
(
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
c
=
tint_div
(
a
,
b
);
return
;
}