target/arm: Add fp16 support to vfp_expand_imm

Backports commit 8081796a75414f9ed5ec3d97158e543ed45908ec from qemu.
This commit is contained in:
Lioncash 2018-02-07 09:47:00 -05:00
parent b55f35ba92
commit ef07c136b6
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -4733,6 +4733,11 @@ static uint64_t vfp_expand_imm(int size, uint8_t imm8)
(extract32(imm8, 0, 6) << 3);
imm <<= 16;
break;
case MO_16:
imm = (extract32(imm8, 7, 1) ? 0x8000 : 0) |
(extract32(imm8, 6, 1) ? 0x3000 : 0x4000) |
(extract32(imm8, 0, 6) << 6);
break;
default:
g_assert_not_reached();
}