diff options
| author | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2013-11-21 14:04:38 +0000 |
|---|---|---|
| committer | Artyom Skrobov <Artyom.Skrobov@arm.com> | 2013-11-21 14:04:38 +0000 |
| commit | 53b000a86ccb612f94c6156fd8b08d6646fc59b2 (patch) | |
| tree | 23bcead079a2714e80f4011514caaa52d96c59e2 /clang/lib/Driver/Tools.cpp | |
| parent | 468ee230eab2c6abf84b25622058d2cf321138af (diff) | |
| download | bcm5719-llvm-53b000a86ccb612f94c6156fd8b08d6646fc59b2.tar.gz bcm5719-llvm-53b000a86ccb612f94c6156fd8b08d6646fc59b2.zip | |
[ARM] add basic support for Cortex-A7 and VFPv4 to Clang
llvm-svn: 195359
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 1d86e3f6d60..d6a50168a8a 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -654,16 +654,23 @@ static void getARMFPUFeatures(const Driver &D, const Arg *A, Features.push_back("-vfp2"); Features.push_back("-vfp3"); Features.push_back("-neon"); + } else if (FPU == "vfp") { + Features.push_back("+vfp2"); + Features.push_back("-neon"); } else if (FPU == "vfp3-d16" || FPU == "vfpv3-d16") { Features.push_back("+vfp3"); Features.push_back("+d16"); Features.push_back("-neon"); - } else if (FPU == "vfp") { - Features.push_back("+vfp2"); - Features.push_back("-neon"); } else if (FPU == "vfp3" || FPU == "vfpv3") { Features.push_back("+vfp3"); Features.push_back("-neon"); + } else if (FPU == "vfp4-d16" || FPU == "vfpv4-d16") { + Features.push_back("+vfp4"); + Features.push_back("+d16"); + Features.push_back("-neon"); + } else if (FPU == "vfp4" || FPU == "vfpv4") { + Features.push_back("+vfp4"); + Features.push_back("-neon"); } else if (FPU == "fp-armv8") { Features.push_back("+fp-armv8"); Features.push_back("-neon"); |

