summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-26 08:44:16 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-26 08:44:16 +0000
commit76c786ac9aee314c1f31d29be4662a418f16ea5a (patch)
tree52fd9ff0cde4f19e0d953d8bd8dcd87a8a61c1bc /gcc/config/i386
parentc5e8b3e288dc2eee7081df0c3eee40dbc7b66202 (diff)
downloadgcc-76c786ac9aee314c1f31d29be4662a418f16ea5a.tar.gz
* config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
alternative. Formatting fix. * gcc.target/i386/avx512bw-vpalignr-4.c: New test. * gcc.target/i386/avx512vl-vpalignr-4.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236764 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/sse.md17
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index c681098469c..93b65712aee 100644
--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -17783,33 +17783,34 @@
(set_attr "mode" "<sseinsnmode>")])
(define_insn "*ssse3_palignr<mode>_perm"
- [(set (match_operand:V_128 0 "register_operand" "=x,x")
+ [(set (match_operand:V_128 0 "register_operand" "=x,x,v")
(vec_select:V_128
- (match_operand:V_128 1 "register_operand" "0,x")
+ (match_operand:V_128 1 "register_operand" "0,x,v")
(match_parallel 2 "palignr_operand"
- [(match_operand 3 "const_int_operand" "n, n")])))]
+ [(match_operand 3 "const_int_operand" "n,n,n")])))]
"TARGET_SSSE3"
{
- operands[2] =
- GEN_INT (INTVAL (operands[3]) * GET_MODE_UNIT_SIZE (GET_MODE (operands[0])));
+ operands[2] = (GEN_INT (INTVAL (operands[3])
+ * GET_MODE_UNIT_SIZE (GET_MODE (operands[0]))));
switch (which_alternative)
{
case 0:
return "palignr\t{%2, %1, %0|%0, %1, %2}";
case 1:
+ case 2:
return "vpalignr\t{%2, %1, %1, %0|%0, %1, %1, %2}";
default:
gcc_unreachable ();
}
}
- [(set_attr "isa" "noavx,avx")
+ [(set_attr "isa" "noavx,avx,avx512bw")
(set_attr "type" "sseishft")
(set_attr "atom_unit" "sishuf")
- (set_attr "prefix_data16" "1,*")
+ (set_attr "prefix_data16" "1,*,*")
(set_attr "prefix_extra" "1")
(set_attr "length_immediate" "1")
- (set_attr "prefix" "orig,vex")])
+ (set_attr "prefix" "orig,vex,evex")])
(define_expand "avx512vl_vinsert<mode>"
[(match_operand:VI48F_256 0 "register_operand")