summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/Target/Mips
AgeCommit message (Collapse)AuthorFilesLines
2020-05-23Use a distinct trap code with retguard on mips64.visa1-2/+3
This lets the kernel detect retguard traps and send SIGABRT instead of SIGEMT. SIGEMT does not indicate correctly the nature of the error (stack overflow, violation of control flow). It can confuse the user to restart the program without further investigation. Prompted by and OK deraadt@ OK mortimer@
2019-10-25Add retguard for octeon/mips64.mortimer7-1/+437
For this architecture we use separate retguard prologue and epilogue code for static or PIC code. In the PIC case we use some additional code before the retguard epilogue to recover the function start address and the GOT pointer in order to get the per-function random cookie. Much thanks to visa@ for suggestions and advice making it all work. ok deraadt@ visa@
2019-09-01Merge LLVM 8.0.1 release.patrick2-3/+7
Tested in snaps and package builds Tested on amd64 by naddy@ Tested on arm64 by patrick@ Tested on octeon by visa@
2019-09-01Import LLVM 8.0.1 release including clang, lld and lldb.patrick6-13/+39
2019-07-28Address a few issues in the expansion of li.d and li.s:visa1-8/+15
- In the N64 mode, properly load the whole immediate value in the destination register even if the lower 32 bits are zero. - Ensure correct alignment of memory operands. - Fix the endianess of memory operands.
2019-07-08Fix instruction guard. This prevents the compiler from usingvisa1-1/+1
the MIPS64 mul instruction on pre-MIPS64 subtargets.
2019-07-01Implement the 'h' register constraint on mips64. This lets clang buildvisa1-0/+8
pieces of software that use the constraint if the compiler claims to be compatible with GCC 4.2.1. Note that the constraint was removed in GCC 4.4. The reason was that 'h' could generate code whose result is unpredictable. The underlying reason is that the HI and LO registers are special, and the optimizer has to be careful when choosing the order of HI/LO accesses. It looks that LLVM has the needed logic.
2019-06-24Implement .cplocal directive. Needed when building libcrypto.visa3-25/+68
2019-06-24Implement SGE pseudo-instructions. Needed when building libcrypto.visa3-0/+99
2019-06-24Fix a bug in memory operand handling. If a load or store uses a symbolvisa1-0/+4
as a memory operand, the assembler generates incorrect relocations in PIC mode. As a simple fix, expand the instruction into an address load sequence, which works, that is followed by the actual memory instruction. Note that the generated sequence is not always optimal. If the symbol has a small offset, the offset could be fused with the memory instruction. The fix does not achieve that, however. A symbol offset adds an extra instruction.
2019-06-23Merge LLVM 8.0.0 release.patrick2-31/+65
Prepared with help from jsg@ and mortimer@ Tested on amd64 by bcallah@, krw@, naddy@ Tested on arm64 by patrick@ Tested on macppc by kettenis@ Tested on octeon by visa@ Tested on sparc64 by claudio@
2019-06-23Import LLVM 8.0.0 release including clang, lld and lldb.patrick58-482/+1498
2019-04-20Restore previous section after setting the MIPS ABI marker. This keepsvisa1-0/+2
the .text section in use after the file header, improving compatibility with gcc. Without this change, module-level inline assembly blocks could end up into wrong section. OK kettenis@ guenther@
2019-01-27Tedu files that got removed in LLVM 7.0.1.patrick2-782/+0
2019-01-27Merge LLVM 7.0.1 release.patrick1-6/+3
With fixes from mortimer@ (thanks!) Tested by many, especially naddy@ (thanks!)
2019-01-27Import LLVM 7.0.1 release including clang, lld and lldb.patrick99-3201/+8000
2018-10-21Enable the integrated assembler on mips64.visa1-0/+5
Upstream references: https://reviews.llvm.org/D31557 https://reviews.llvm.org/D48515 OK kettenis@
2018-04-06Tedu files that got removed in LLVM 6.0.0.patrick2-829/+0
2018-04-06Import LLVM 6.0.1 release including clang, lld and lldb.patrick76-1343/+2261
"where is the kaboom?" deraadt@
2017-12-24Import LLVM 5.0.1 release including clang, lld and lldb.patrick13-33/+426
2017-10-04Import LLVM 5.0.0 release including clang, lld and lldb.patrick74-1359/+4443
2017-03-14Import LLVM 4.0.0 release including clang and lld.patrick11-44/+341
2017-01-24Import LLVM 4.0.0 rc1 including clang and lld to help the currentpatrick68-1501/+4926
development effort on OpenBSD/arm64.
2017-01-14Merge LLVM 3.9.1patrick6-104/+0
2017-01-14Import LLVM 3.9.1 including clang and lld.patrick95-3916/+8146
2016-09-03Use the space freed up by sparc and zaurus to import LLVM.pascal136-0/+62083
ok hackroom@