mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-09-18 15:37:34 +00:00
target/arm: Add fp16 support to vfp_expand_imm
Backports commit 8081796a75414f9ed5ec3d97158e543ed45908ec from qemu.
This commit is contained in:
parent
b55f35ba92
commit
ef07c136b6
|
@ -4733,6 +4733,11 @@ static uint64_t vfp_expand_imm(int size, uint8_t imm8)
|
||||||
(extract32(imm8, 0, 6) << 3);
|
(extract32(imm8, 0, 6) << 3);
|
||||||
imm <<= 16;
|
imm <<= 16;
|
||||||
break;
|
break;
|
||||||
|
case MO_16:
|
||||||
|
imm = (extract32(imm8, 7, 1) ? 0x8000 : 0) |
|
||||||
|
(extract32(imm8, 6, 1) ? 0x3000 : 0x4000) |
|
||||||
|
(extract32(imm8, 0, 6) << 6);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached();
|
g_assert_not_reached();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue