From c77830d21e6403b42d9511bd59a4892441f10d65 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Tue, 6 Dec 2011 01:44:17 +0000 Subject: [arm-fast-isel] Doublewords only require word-alignment. rdar://10528060 llvm-svn: 145891 --- llvm/lib/Target/ARM/ARMFastISel.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Target/ARM/ARMFastISel.cpp') diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp index ea03fb7a601..de366f7bc8f 100644 --- a/llvm/lib/Target/ARM/ARMFastISel.cpp +++ b/llvm/lib/Target/ARM/ARMFastISel.cpp @@ -1106,7 +1106,7 @@ bool ARMFastISel::ARMEmitStore(EVT VT, unsigned SrcReg, Address &Addr, case MVT::f32: if (!Subtarget->hasVFP2()) return false; StrOpc = ARM::VSTRS; - // Unaligned stores need special handling. + // Unaligned stores need special handling. Floats require word-alignment. if (Alignment && Alignment < 4) { unsigned MoveReg = createResultReg(TLI.getRegClassFor(MVT::i32)); AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, @@ -1119,8 +1119,9 @@ bool ARMFastISel::ARMEmitStore(EVT VT, unsigned SrcReg, Address &Addr, break; case MVT::f64: if (!Subtarget->hasVFP2()) return false; - // FIXME: Unaligned stores need special handling. - if (Alignment && Alignment < 8) { + // FIXME: Unaligned stores need special handling. Doublewords require + // word-alignment. + if (Alignment && Alignment < 4) { return false; } StrOpc = ARM::VSTRD; -- cgit v1.2.3