[llvm-commits] [llvm] r116466 - in /llvm/trunk: lib/Target/ARM/ARMCodeEmitter.cpp lib/Target/ARM/ARMInstrVFP.td test/MC/ARM/simple-fp-encoding.ll
Bill Wendling
isanbard at gmail.com
Wed Oct 13 18:19:35 PDT 2010
Author: void
Date: Wed Oct 13 20:19:34 2010
New Revision: 116466
URL: http://llvm.org/viewvc/llvm-project?rev=116466&view=rev
Log:
Add encoding for 'fmstat'.
Modified:
llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
llvm/trunk/lib/Target/ARM/ARMInstrVFP.td
llvm/trunk/test/MC/ARM/simple-fp-encoding.ll
Modified: llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp?rev=116466&r1=116465&r2=116466&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp Wed Oct 13 20:19:34 2010
@@ -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.
Modified: llvm/trunk/lib/Target/ARM/ARMInstrVFP.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrVFP.td?rev=116466&r1=116465&r2=116466&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrVFP.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrVFP.td Wed Oct 13 20:19:34 2010
@@ -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)
Modified: llvm/trunk/test/MC/ARM/simple-fp-encoding.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/simple-fp-encoding.ll?rev=116466&r1=116465&r2=116466&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/simple-fp-encoding.ll (original)
+++ llvm/trunk/test/MC/ARM/simple-fp-encoding.ll Wed Oct 13 20:19:34 2010
@@ -331,6 +331,8 @@
ret float %sub
}
+; FIXME: Check for fmstat instruction.
+
define i32 @f100() nounwind readnone {
entry:
; CHECK: f100
More information about the llvm-commits
mailing list