summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins-mips-msa-error.c
Commit message (Collapse)AuthorAgeFilesLines
* [mips][msa] Fix msa_[st/ld] offset checkAleksandar Beserminji2018-11-071-6/+6
| | | | | | | | | This patch fixes a minimum divider for offset in intrinsics msa_[st/ld]_[b/h/w/d], when value is known in compile time. Differential revision: https://reviews.llvm.org/D54038 llvm-svn: 346302
* [mips][msa] Fix broken testAleksandar Beserminji2018-11-051-372/+373
| | | | | | | | | Test builtins-mips-msa-error.c wasn't reporting errors. This patch fixes the test, so further test cases can be added. Differential Revision: https://reviews.llvm.org/D53984 llvm-svn: 346124
* [mips][msa] Range adjustment for ldi_b builtin function operandPetar Jovanovic2017-03-311-2/+2
| | | | | | | | | | | | | | | Reasoning behind this change was allowing the function to accept all values from range [-128, 255] since all of them can be encoded in an 8bit wide value. This differs from the prior state where only range [-128, 127] was accepted, where values were assumed to be signed, whereas now the actual interpretation of the immediate is deferred to the consumer as required. Patch by Stefan Maksimovic. Differential Revision: https://reviews.llvm.org/D31082 llvm-svn: 299229
* [mips][msa] Remove range checks for non-immediate sld.[bhwd] instructionsPetar Jovanovic2017-03-101-10/+0
| | | | | | | | | | | Removes immediate range checks for these instructions, since they have GPR rt as their input operand. Patch by Stefan Maksimovic. Differential Revision: https://reviews.llvm.org/D30693 llvm-svn: 297485
* [mips][msa] Range check MSA intrinsics with immediatesSimon Dardis2016-10-191-0/+421
This patch teaches clang to range check immediates for MIPS MSA instrinsics. This checking is done strictly in comparison to some existing GCC implementations. E.g. msa_andvi_b(var, 257) does not result in andvi $wX, 1. Similarily msa_ldi_b takes a range of -128 to 127. As part of this effort, correct the existing MSA test as it has both illegal types and immediates. Reviewers: vkalintiris Differential Revision: https://reviews.llvm.org/D25017 llvm-svn: 284620
OpenPOWER on IntegriCloud