]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/arm: Add fp16 support to vfp_expand_imm
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 16 Jan 2018 13:28:14 +0000 (13:28 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Jan 2018 13:28:14 +0000 (13:28 +0000)
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20180110063337.21538-3-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/translate-a64.c

index 80ae019172f8b48e78f4e1b0a968dae39e27c355..cf537e9d9b86a6cf80b2794ea4353bcf0780f91f 100644 (file)
@@ -5006,6 +5006,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();
     }