Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
SIMD
/
splat.js
blob: cdccfb570a2eac52e485171fec9cafb96528ec4e [
file
] [
log
] [
blame
]
load
(
libdir
+
'simd.js'
);
setJitCompilerOption
(
"ion.warmup.trigger"
,
50
);
function
f
()
{
for
(
var
i
=
0
;
i
<
150
;
i
++)
{
assertEqX4
(
SIMD
.
Int32x4
.
splat
(
42
),
[
42
,
42
,
42
,
42
]);
assertEqX4
(
SIMD
.
Float32x4
.
splat
(
42
),
[
42
,
42
,
42
,
42
]);
}
}
f
();