summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/mips-as.c
Commit message (Collapse)AuthorAgeFilesLines
* [mips] Add `octeon+` to the list of CPUs accepted by the driverSimon Atanasyan2019-11-071-0/+10
|
* [mips] Improve handling of -fno-[pic/PIC] optionAleksandar Beserminji2018-05-071-8/+8
| | | | | | | | | | | | | | | In order to disable PIC and to match GCC behaviour, -mno-abicalls option is neccessary. When -fno-[pic/PIC] is used witout -mno-abicalls, warning is reported. An error is reported when -fno-pic or -fno-PIC is used in combination with -mabicalls. In this commit, test case is added. Depends on D44381. Differential Revision: https://reviews.llvm.org/D44684 llvm-svn: 331640
* Revert "[mips] Improve handling of -fno-[pic/PIC] option"Aleksandar Beserminji2018-05-071-8/+8
| | | | | | This reverts commit r331636. Forgot to add the test case. llvm-svn: 331639
* [mips] Improve handling of -fno-[pic/PIC] optionAleksandar Beserminji2018-05-071-8/+8
| | | | | | | | | | | | | In order to disable PIC and to match GCC behaviour, -mno-abicalls option is neccessary. When -fno-[pic/PIC] is used witout -mno-abicalls, warning is reported. An error is reported when -fno-pic or -fno-PIC is used in combination with -mabicalls. Depends on D44381. Differential Revision: https://reviews.llvm.org/D44684 llvm-svn: 331636
* [mips] Add support for static model on N64Simon Dardis2017-01-271-17/+62
| | | | | | | | | | | | | | | | | | | | | | | The patch teaches the Clang driver how to handle the N64 static relocation model properly. It enforces the correct target feature (+noabicalls) when -fno-pic is used. This is required as non-pic N64 code as the abi extension to call PIC code (CPIC) is unsupported. Make PIC the default for mips64 and mips64el, this affects both N32 & N64 ABIs, to better match GCC. As part of this effort, clean up the assembler invocation command builder, so the correct flags are used. This and r293279 in LLVM resolves PR/23485. Thanks to Brooks Davis for reporting the issue! Reviewers: slthakur, seanbruno Differential Revision: https://reviews.llvm.org/D29031 llvm-svn: 293285
* [mips] Kill 'support' for untested EABI.Daniel Sanders2016-05-271-5/+0
| | | | | | | | | | | | | | | | | Summary: There are no llvm backend tests* for EABI and no EABI buildbots. There were only three clang tests, all of which checked that -mabi=eabi was passed to the assembler. *There is a single backend test that specifies EABI but it actually tests MIPS16. Reviewers: atanasyan Subscribers: emaste, sdardis, atanasyan, cfe-commits Differential Revision: http://reviews.llvm.org/D20679 llvm-svn: 270998
* [mips][p5600] Add -mcpu=p5600 option.Daniel Sanders2015-10-051-0/+5
| | | | | | | | | | | | Summary: Reviewers: vkalintiris, atanasyan Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D12234 llvm-svn: 249306
* [mips] Don't propagate -mfpxx by default if soft/single float were also set.Toma Tabacu2015-06-161-0/+66
| | | | | | | | | | | | | | | | | 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] Pass on -m{single,double}-float to GAS.Toma Tabacu2015-06-111-0/+10
| | | | | | | | | | | | | | Summary: We already pass these to the IAS, but not to GAS. Reviewers: dsanders, atanasyan Reviewed By: atanasyan Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10358 llvm-svn: 239525
* [Mips] Support mips32r3, mips32r5, mips64r3, mips64r5 MIPS ISA namesSimon Atanasyan2015-02-201-0/+20
| | | | | | | | | The patch teaches the clang's driver to understand new MIPS ISA names, pass appropriate options to the assembler, defines corresponding macros etc http://reviews.llvm.org/D7737 llvm-svn: 230092
* Partially revert r215204 - [mips] Add -mabicalls/-mno-abicalls to the driverDaniel Sanders2014-08-081-50/+40
| | | | | | | | It wasn't actually a bug that -mabicalls/-mno-abicalls wasn't being passed to GAS. The only reason we pass it to the integrated assembler is because it shares the same framework with CodeGen. llvm-svn: 215236
* [mips] Add -mabicalls/-mno-abicalls to the driverDaniel Sanders2014-08-081-40/+50
| | | | | | | 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] -mno-shared should only be given to the assembler when ↵Daniel Sanders2014-07-231-1/+1
| | | | | | | | -fPIC/-fpic/-fPIE/-fpie is not in effect. This fixes compiler recursion on MIPS32r2. llvm-svn: 213741
* [mips] Correct the invocation of GAS in several cases.Daniel Sanders2014-07-161-47/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: As a result of this patch, assembling an empty file with GCC and Clang (using GAS as the assembler) now produces identical objects. -mfp32/-mfpxx/-mfp64 now form a trinity of options. -mfpxx is the default when the triple vendor is 'img' or 'mti', the ABI is O32, and the CPU is between mips2 and mips32r2/mips64r2 (inclusive). -mno-shared is always given to the assembler to match the effect of -mabicalls (currently unimplemented but Clang acts as if it is given). Similarly, -call_nonpic is always given to match the effect of -mplt (also unimplemented and acts as if given) except when the ABI is 64 in which case -mplt has no effect so -KPIC is given instead. -mhard-float/-msoft-float are now passed on. -modd-spreg/-mno-odd-spreg are now passed on. -mno-mips16 is correctly passed on. The assembler option is -no-mips16 not -mno-mips16 Differential Revision: http://reviews.llvm.org/D4515 llvm-svn: 213138
* [mips][mips64r6] Implement -mips32r6 and -mips64r6 aliases to ↵Daniel Sanders2014-07-091-0/+10
| | | | | | | | -march=mips32r6 and -march=mips64r6 Differential Revision: http://reviews.llvm.org/D4434 llvm-svn: 212625
* [Driver][Mips] Support one more MIPS CPU name - octeon.Simon Atanasyan2014-07-041-0/+5
| | | | llvm-svn: 212339
* [Driver][Mips] Support more MIPS CPU names: mips1 - mips5.Simon Atanasyan2014-07-041-0/+25
| | | | llvm-svn: 212338
* [mips] Added additional test cases for passing -mabi to the assembler.Daniel Sanders2014-07-021-0/+48
| | | | | | | | | | | Summary: This patch adds minimal coverage for each -mcpu value to ensure that none of them can pass an empty string in -mabi. Prior to r212176, many -mcpu values would trigger this. Differential Revision: http://reviews.llvm.org/D4272 llvm-svn: 212182
* [mips] Make FileCheck prefixes match the CPU they checkDaniel Sanders2014-07-021-16/+16
| | | | | | | | | | | Summary: For example: s/MIPS32-EB-AS/MIPS32R2-EB-AS/ since it is for MIPS32r2 not MIPS32. This reduces the noise in my next Clang patch. Differential Revision: http://reviews.llvm.org/D4271 llvm-svn: 212177
* [Driver][Mips] Fix test cases - make ABI name and target triple consistent.Simon Atanasyan2014-06-301-2/+2
| | | | | | No functional changes. llvm-svn: 212023
* test: fix MIPS driver testsSaleem Abdulrasool2014-02-221-7/+7
| | | | | | | | | | The tests attempt to validate the invocation of the assembler program with the integrated assembler disabled. However, the match pattern for the negative tests are lax and will match both the driver invocation as well as the assembler invocation. Make the tests more strict by ensuring that we only match the assembler invocation. llvm-svn: 201959
* Fix broken CHECK linesNico Rieck2014-02-161-1/+1
| | | | llvm-svn: 201477
* [Mips] Change default CPU for MIPS 32/64 targets. Now they are ↵Simon Atanasyan2014-01-271-17/+17
| | | | | | mips32r2/mips64r2 respectively. llvm-svn: 200222
* [Mips] Pass -mmsa option to the assembler.Simon Atanasyan2013-11-261-0/+11
| | | | llvm-svn: 195756
* [Mips] Take in account the -mfp64 command line option when build pathsSimon Atanasyan2013-11-201-0/+10
| | | | | | to the crt*.o files, libraries and headers for the MIPS FSFS toolchain. llvm-svn: 195249
* [Mips] Support -mnan=2008 option. Define "__mips_nan2008" macros and passSimon Atanasyan2013-09-241-0/+11
| | | | | | this option to the assembler. llvm-svn: 191282
* [Mips] Pass -mips16, -mmicromips, -mdsp and -mdspr2 flags to theSimon Atanasyan2013-04-301-0/+44
| | | | | | assembler. llvm-svn: 180775
* [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] Add two new aliases for MIPS ABI names 32 (means o32 abi) and 64Simon Atanasyan2013-02-271-4/+14
| | | | | | | (means n64 abi) to improve compatibility with GNU tools. Patch by Jia Liu <proljc@gmail.com>. llvm-svn: 176187
* Add four new command line options for MIPS CPU selection:Simon Atanasyan2012-09-211-0/+20
| | | | | | | | -mips32, -mips32r2, -mips64, -mips64r2. The patch reviewed by Eric Christopher. llvm-svn: 164410
* MIPS: Use -march=arch option to select either generic MIPS ISA,Simon Atanasyan2012-09-101-0/+5
| | | | | | | | or the name of a particular processor. The patch reviewed by Douglas Gregor. llvm-svn: 163492
* Check for MIPS target availability for Driver/mips-as.c test.Simon Atanasyan2012-08-281-0/+2
| | | | llvm-svn: 162744
* Give test check tags consistent names. Simon Atanasyan2012-07-051-9/+9
| | | | llvm-svn: 159744
* MIPS: Pass -KPIC argument to MIPS assembler if necessary.Simon Atanasyan2012-05-291-0/+7
| | | | llvm-svn: 157635
* MIPS: Pass -mabi option to the assmbler when compile MIPS targets.Simon Atanasyan2012-04-071-4/+14
| | | | llvm-svn: 154270
* MIPS: Pass -EB/-EL argument to the assembler according to selected endian ↵Simon Atanasyan2012-04-061-0/+21
when compile for MIPS targets. llvm-svn: 154195
OpenPOWER on IntegriCloud