Handbook
Glossary
emit-simd-vpack-signed ( node -- )
Vocabulary
compiler
.
cfg
.
intrinsics
.
simd
Inputs
node
an
object
Outputs
None
Definition
USING:
compiler.cfg.hats
compiler.cfg.intrinsics.simd.backend
cpu.architecture
locals.backend
;
IN:
compiler.cfg.intrinsics.simd
:
emit-simd-vpack-signed
( node -- )
{
{
double-2-rep
[
3
load-locals
-2
get-local
double-2-rep
^^float-pack-vector
load-local
-2
get-local
double-2-rep
^^float-pack-vector
load-local
-1
get-local
0
get-local
{
0 1 0 1
}
float-4-rep
^^shuffle-vector-halves-imm
5
drop-locals
]
}
{
int-vector-rep
[
^^signed-pack-vector
]
}
}
emit-vv-vector-op
;