summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/mips-features.c
Commit message (Collapse)AuthorAgeFilesLines
* [mips] Don't propagate -mfpxx by default if soft/single float were also set.Toma Tabacu2015-06-161-0/+72
| | | | | | | | | | | | | | | | | Summary: If the driver is only given -msoft-float/-mfloat-abi=soft or -msingle-float, we should refrain from propagating -mfpxx, unless it was explicitly given on the command line. Reviewers: atanasyan, dsanders Reviewed By: atanasyan, dsanders Subscribers: cfe-commits, mpf Differential Revision: http://reviews.llvm.org/D10387 llvm-svn: 239818
* [Mips] Generate warning for invalid '-mnan' and '-march' combinationsPetar Jovanovic2015-04-141-2/+2
| | | | | | | | | | | | This patch generates a warning for invalid combination of '-mnan' and '-march' options, it properly sets NaN encoding for a given '-march', and it passes a proper NaN encoding to the assembler. Patch by Vladimir Radosavljevic. Differential Revision: http://reviews.llvm.org/D8170 llvm-svn: 234882
* [mips] Invert the abicalls feature bit to be noabicalls so that it's ↵Daniel Sanders2014-08-081-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | possible for -mno-abicalls to take effect. Also added the testcase that should have been in r215194. This behaviour has surprised me a few times now. The problem is that the generated MipsSubtarget::ParseSubtargetFeatures() contains code like this: if ((Bits & Mips::FeatureABICalls) != 0) IsABICalls = true; so '-abicalls' means 'leave it at the default' and '+abicalls' means 'set it to true'. In this case, (and the similar -modd-spreg case) I'd like the code to be IsABICalls = (Bits & Mips::FeatureABICalls) != 0; or possibly: if ((Bits & Mips::FeatureABICalls) != 0) IsABICalls = true; else IsABICalls = false; and preferably arrange for 'Bits & Mips::FeatureABICalls' to be true by default (on some triples). llvm-svn: 215211
* [mips] Add -mabicalls/-mno-abicalls to the driverDaniel Sanders2014-08-081-0/+12
| | | | | | | Based on a patch by Matheus Almeida. I've added testcases and fixed a bug where the options weren't passed on to GAS. llvm-svn: 215204
* [mips] Add support for -mfpxx and -mno-fpxx.Daniel Sanders2014-07-161-0/+12
| | | | | | Differential Revision: http://reviews.llvm.org/D4464 llvm-svn: 213132
* [mips] Add support for -modd-spreg/-mno-odd-spregDaniel Sanders2014-07-101-0/+10
| | | | | | Differential Revision: http://reviews.llvm.org/D4432 llvm-svn: 212700
* [mips] Pass nan2008 info to the back-end.Matheus Almeida2014-05-071-0/+12
| | | | | | | | | | | | Summary: The initial support for NaN2008 was added to the back-end in r206396. Reviewers: atanasyan Reviewed By: atanasyan Differential Revision: http://reviews.llvm.org/D3448 llvm-svn: 208220
* [mips] Added -mfp64 and -mfp32 options.Daniel Sanders2013-10-171-0/+12
| | | | | | | | | | | | | | | | These options specify 64-bit FP registers and 32-bit FP registers respectively. When using -mfp32, the FPU has 16x double-precision registers overlapping with the 32x single-precision registers (each double-precision register overlaps two single-precision registers). When using -mfp64, the FPU has 32x double-precision registers overlapping with the 32x single-precision registers (each double-precision register overlaps with one single-precision register and has an additional 32-bits). MSA requires -mfp64. llvm-svn: 192899
* [Mips] MSA frontend option supportJack Carter2013-08-121-0/+12
| | | | | | | | | | | This patch adds -mmsa and -mno-msa to the options supported by clang to enable and disable support for MSA. When MSA is enabled, a predefined macro '__mips_msa' is defined to 1. Patch by Daniel Sanders llvm-svn: 188184
* [mips] Add support for command-line options -mno-check-zero-division andAkira Hatanaka2013-07-191-0/+12
| | | | | | -mcheck-zero-division. llvm-svn: 186710
* [Mips] Add -mldc1-sdc1 / -mno-ldc1-sdc1 command line options.Simon Atanasyan2013-05-111-0/+12
| | | | llvm-svn: 181660
* [Mips] Remove "REQUIRES: mips-registered-target" from some MIPS-relatedSimon Atanasyan2013-04-221-2/+0
| | | | | | | driver tests. These tests check the driver only and do not require mips target. llvm-svn: 180042
* [Mips] Support -mmicromips / -mno-micromips command line options.Simon Atanasyan2013-04-141-0/+12
| | | | llvm-svn: 179489
* [MIPS] Add -mxgot/-mno-xgot command line optionsSimon Atanasyan2012-12-011-0/+12
| | | | | | to enable/disable support of GOT larger than 64k. llvm-svn: 169098
* MIPS: Use -G option to specify MIPS section threshold. Translate itSimon Atanasyan2012-08-271-0/+6
| | | | | | | to the -mllvm -mips-ssection-threshold=<value> pair and pass to the frontend. The patch suggested by Carl Norum. llvm-svn: 162697
* Tests: check for target availability for target-specific tests.Jim Grosbach2012-07-091-0/+2
| | | | | | | | Lots of tests are using an explicit target triple w/o first checking that the target is actually available. Add a REQUIRES clause to a bunch of them. This should hopefully unbreak bots which don't configure w/ all targets enabled. llvm-svn: 159949
* MIPS: Add -mdsp/-mno-dsp and -mdspr2/-mno-dspr2 command line options support.Simon Atanasyan2012-07-051-0/+24
| | | | llvm-svn: 159769
* MIPS: Add -mips16 / -mno-mips16 command line support.Simon Atanasyan2012-07-051-0/+13
llvm-svn: 159747
OpenPOWER on IntegriCloud