Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
dalvik
/
590f78fc4b6e3268149c5eacb7c8b7dd33497f44
/
.
/
vm
/
mterp
/
c
/
OP_CONST_4.c
blob: 800ef9a0aafc11dbd9187be29e04f2cf019c356b [
file
] [
log
] [
blame
]
HANDLE_OPCODE
(
OP_CONST_4
/*vA, #+B*/
)
{
s4 tmp
;
vdst
=
INST_A
(
inst
);
tmp
=
(
s4
)
(
INST_B
(
inst
)
<<
28
)
>>
28
;
// sign extend 4-bit value
ILOGV
(
"|const/4 v%d,#0x%02x"
,
vdst
,
(
s4
)
tmp
);
SET_REGISTER
(
vdst
,
tmp
);
}
FINISH
(
1
);
OP_END