[LLVMdev] Question about arm thumb2 code generation

Gergö Barany gergo at complang.tuwien.ac.at
Thu Aug 2 01:52:36 PDT 2012


On Thu, Aug 02, 2012 at 10:44:40 +0200, Sebastien DELDON-GNB wrote:
> Thanks andrew for the answer.
> I would like to generate code for Cortex-A9 that don't use neon for fp computation but vfpv3 -d16. I've tried some combination of -mattr=+neon,-neonfp,+vfp3,+d16 but couldn't get ".fpu vfpv3-d16" directive generated in assembly file. Do you know how to make it happen ?

You can pass -mfpu=vfp3 to the assembler; that was the simplest solution I
found when I needed to do that.

-- 
Gergö Barany, research assistant                 gergo at complang.tuwien.ac.at
Institute of Computer Languages      http://www.complang.tuwien.ac.at/gergo/
Vienna University of Technology                       Tel: +43-1-58801-58522
Argentinierstrasse 8/E185, 1040 Wien, Austria         Fax: +43-1-58801-18598




More information about the llvm-dev mailing list