]> granicus.if.org Git - clang/commit
[mips][msa] Range adjustment for ldi_b builtin function operand
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Fri, 31 Mar 2017 16:16:43 +0000 (16:16 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Fri, 31 Mar 2017 16:16:43 +0000 (16:16 +0000)
commit59ea2edf0b26fa4463651eff861a62680b00a7fd
treeef630d932797442015ffb72aedea67ee497a5395
parent40be91d5ff7b8d289fdb0e9df4de724eb4d1a152
[mips][msa] Range adjustment for ldi_b builtin function operand

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299229 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/CodeGen/builtins-mips-msa-error.c
test/CodeGen/builtins-mips-msa.c