aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2020-11-11 11:42:45 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2020-11-11 11:42:45 +0000
commite29dd0eb733f4b9ae03e44322c7fbe8b51eff0a4 (patch)
treeaed14aaf95c4b6801b834767bea500336c7016f7 /gcc/ada/gcc-interface
parent0ebaea3b6677ef8edfa5638800304db1a4f7c2f8 (diff)
downloadgcc-e29dd0eb733f4b9ae03e44322c7fbe8b51eff0a4.zip
gcc-e29dd0eb733f4b9ae03e44322c7fbe8b51eff0a4.tar.gz
gcc-e29dd0eb733f4b9ae03e44322c7fbe8b51eff0a4.tar.bz2
vect: Allow vconds between different vector sizes
The vcond code requires the compared vectors and the selected vectors to have both the same size and the same number of elements as each other. But the operation makes logical sense even for different vector sizes. E.g. you could compare two V4SIs and use the result to select between two V4DIs. The underlying optab already allows the compared mode and the selected mode to be specified separately. Since the vectoriser now also supports mixed vector sizes, I think we can simply remove the equal-size check and just keep the equal-lanes check. It's then up to the target to decide which (if any) mixtures of sizes it supports. gcc/ * optabs-tree.c (expand_vec_cond_expr_p): Allow the compared values and the selected values to have different mode sizes. * gimple-isel.cc (gimple_expand_vec_cond_expr): Likewise.
Diffstat (limited to 'gcc/ada/gcc-interface')
0 files changed, 0 insertions, 0 deletions