aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2019-10-18 19:04:38 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2019-10-18 19:04:38 +0000
commitfa62df0e600ef617bce549d64026c0e5cc817c31 (patch)
tree56583c6d248e02eafd0d9dde04728a3aa05e74dd /gcc/config.gcc
parentdb962d0ad4501f2f673fc3fadd4ac572ef9a177e (diff)
downloadgcc-fa62df0e600ef617bce549d64026c0e5cc817c31.zip
gcc-fa62df0e600ef617bce549d64026c0e5cc817c31.tar.gz
gcc-fa62df0e600ef617bce549d64026c0e5cc817c31.tar.bz2
[arm] Early split addvdi4
This patch adds early splitting for addvdi4; it's very similar to the uaddvdi4 splitter, but the details are just different enough in places, especially for the patterns that match the splitting, where we have to compare against the non-widened version to detect if overflow occurred. I've also added a testcase to the testsuite for a couple of constants that caught me out during the development of this patch. They're probably arm-specific values, but the test is generic enough that I've included it for all targets. [gcc] * config/arm/arm.c (arm_select_cc_mode): Allow either the first or second operand of the PLUS inside a DImode equality test to be sign-extend when selecting CC_Vmode. * config/arm/arm.md (addvdi4): Early-split the operation into SImode instructions. (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New expand patterns. (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns. (addsi3_cin_vout_0): Likewise. (adddi3_compareV): Delete. [gcc/testsuite] * gcc.dg/builtin-arith-overflow-3.c: New test. From-SVN: r277186
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions