diff options
Diffstat (limited to 'src/arch/arm/isa/formats')
-rw-r--r-- | src/arch/arm/isa/formats/fp.isa | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/arch/arm/isa/formats/fp.isa b/src/arch/arm/isa/formats/fp.isa index 47703a7a0..e92757096 100644 --- a/src/arch/arm/isa/formats/fp.isa +++ b/src/arch/arm/isa/formats/fp.isa @@ -616,8 +616,15 @@ let {{ return new WarnUnimplemented("vcmp, vcmpe", machInst); case 0x7: if (opc3 == 0x3) { - // Between double and single precision. - return new WarnUnimplemented("vcvt", machInst); + if (single) { + vm = (IntRegIndex)(bits(machInst, 5) | + (bits(machInst, 3, 0) << 1)); + return new VcvtFpSFpD(machInst, vd, vm); + } else { + vd = (IntRegIndex)(bits(machInst, 22) | + (bits(machInst, 15, 12) << 1)); + return new VcvtFpDFpS(machInst, vd, vm); + } } break; case 0x8: |