commit | 4d2cc190d1bf1881d2e6d87425e22d27e218a791 | [log] [tgz] |
---|---|---|
author | Bill Wendling <isanbard@gmail.com> | Thu Oct 14 01:19:34 2010 +0000 |
committer | Bill Wendling <isanbard@gmail.com> | Thu Oct 14 01:19:34 2010 +0000 |
tree | e9a4fc8e8750331bd7822f2be35609888f40ada3 | |
parent | 3386b0a6430d34fb08f88dcffcfb85cc984c81cb [diff] |
Add encoding for 'fmstat'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116466 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ARM/ARMCodeEmitter.cpp b/lib/Target/ARM/ARMCodeEmitter.cpp index 9254fcd..fa27a75 100644 --- a/lib/Target/ARM/ARMCodeEmitter.cpp +++ b/lib/Target/ARM/ARMCodeEmitter.cpp
@@ -1599,10 +1599,6 @@ default: llvm_unreachable("ARMCodeEmitter::emitMiscInstruction"); - case ARM::FMSTAT: - // No further encoding needed. - break; - case ARM::FCONSTD: case ARM::FCONSTS: { // Encode Dd / Sd.
diff --git a/lib/Target/ARM/ARMInstrVFP.td b/lib/Target/ARM/ARMInstrVFP.td index a67e645..c7f3f85 100644 --- a/lib/Target/ARM/ARMInstrVFP.td +++ b/lib/Target/ARM/ARMInstrVFP.td
@@ -927,7 +927,9 @@ let Inst{15-12} = 0b1111; let Inst{11-8} = 0b1010; let Inst{7} = 0; + let Inst{6-5} = 0b00; let Inst{4} = 1; + let Inst{3-0} = 0b0000; } // FPSCR <-> GPR (for disassembly only)
diff --git a/test/MC/ARM/simple-fp-encoding.ll b/test/MC/ARM/simple-fp-encoding.ll index 90f8169..84ccb6d 100644 --- a/test/MC/ARM/simple-fp-encoding.ll +++ b/test/MC/ARM/simple-fp-encoding.ll
@@ -331,6 +331,8 @@ ret float %sub } +; FIXME: Check for fmstat instruction. + define i32 @f100() nounwind readnone { entry: ; CHECK: f100