Skip to content

Commit

Permalink
Merge of 9ea9d05
Browse files Browse the repository at this point in the history
  • Loading branch information
sys-ceuplift committed Sep 4, 2024
2 parents 8a5353a + 9ea9d05 commit 879f401
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gcc/config/riscv/riscv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11970,7 +11970,7 @@ riscv_expand_usadd (rtx dest, rtx x, rtx y)
rtx xmode_sum = gen_reg_rtx (Xmode);
rtx xmode_lt = gen_reg_rtx (Xmode);
rtx xmode_x = riscv_gen_zero_extend_rtx (x, mode);
rtx xmode_y = gen_lowpart (Xmode, y);
rtx xmode_y = riscv_gen_zero_extend_rtx (y, mode);
rtx xmode_dest = gen_reg_rtx (Xmode);

/* Step-1: sum = x + y */
Expand Down
4 changes: 2 additions & 2 deletions gcc/config/riscv/riscv.md
Original file line number Diff line number Diff line change
Expand Up @@ -4360,8 +4360,8 @@

(define_expand "usadd<mode>3"
[(match_operand:ANYI 0 "register_operand")
(match_operand:ANYI 1 "register_operand")
(match_operand:ANYI 2 "register_operand")]
(match_operand:ANYI 1 "reg_or_int_operand")
(match_operand:ANYI 2 "reg_or_int_operand")]
""
{
riscv_expand_usadd (operands[0], operands[1], operands[2]);
Expand Down
2 changes: 1 addition & 1 deletion gcc/testsuite/gcc.target/aarch64/vec-init-22-speed.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

#include "vec-init-22.h"

/* { dg-final { scan-assembler-times {\tfmov\td[0-9]+, x[0-9]+} 2 } } */
/* { dg-final { scan-assembler-times {\tfmov\ts[0-9]+, w[0-9]+} 2 } } */
/* { dg-final { scan-assembler-times {\tins\tv[0-9]+\.h\[[1-3]\], w[0-9]+} 6 } } */
/* { dg-final { scan-assembler {\tzip1\tv[0-9]+\.8h, v[0-9]+\.8h, v[0-9]+\.8h} } } */
2 changes: 1 addition & 1 deletion gcc/testsuite/gcc.target/riscv/sat_u_add-11.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
** sat_u_add_uint32_t_fmt_3:
** slli\s+[atx][0-9]+,\s*a0,\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** add\s+[atx][0-9]+,\s*a0,\s*a1
** add\s+[atx][0-9]+,\s*a[01],\s*a[01]
** slli\s+[atx][0-9]+,\s*[atx][0-9],\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** sltu\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
Expand Down
2 changes: 1 addition & 1 deletion gcc/testsuite/gcc.target/riscv/sat_u_add-15.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
** sat_u_add_uint32_t_fmt_4:
** slli\s+[atx][0-9]+,\s*a0,\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** add\s+[atx][0-9]+,\s*a0,\s*a1
** add\s+[atx][0-9]+,\s*a[01],\s*a[01]
** slli\s+[atx][0-9]+,\s*[atx][0-9],\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** sltu\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
Expand Down
2 changes: 1 addition & 1 deletion gcc/testsuite/gcc.target/riscv/sat_u_add-19.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
** sat_u_add_uint32_t_fmt_5:
** slli\s+[atx][0-9]+,\s*a0,\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** add\s+[atx][0-9]+,\s*a0,\s*a1
** add\s+[atx][0-9]+,\s*a[01],\s*a[01]
** slli\s+[atx][0-9]+,\s*[atx][0-9],\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** sltu\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
Expand Down
2 changes: 1 addition & 1 deletion gcc/testsuite/gcc.target/riscv/sat_u_add-23.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
** sat_u_add_uint32_t_fmt_6:
** slli\s+[atx][0-9]+,\s*a0,\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** add\s+[atx][0-9]+,\s*a0,\s*a1
** add\s+[atx][0-9]+,\s*a[01],\s*a[01]
** slli\s+[atx][0-9]+,\s*[atx][0-9],\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** sltu\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
Expand Down
2 changes: 1 addition & 1 deletion gcc/testsuite/gcc.target/riscv/sat_u_add-3.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
** sat_u_add_uint32_t_fmt_1:
** slli\s+[atx][0-9]+,\s*a0,\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** add\s+[atx][0-9]+,\s*a0,\s*a1
** add\s+[atx][0-9]+,\s*a[01],\s*a[01]
** slli\s+[atx][0-9]+,\s*[atx][0-9],\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** sltu\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
Expand Down
2 changes: 1 addition & 1 deletion gcc/testsuite/gcc.target/riscv/sat_u_add-7.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
** sat_u_add_uint32_t_fmt_2:
** slli\s+[atx][0-9]+,\s*a0,\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** add\s+[atx][0-9]+,\s*a0,\s*a1
** add\s+[atx][0-9]+,\s*a[01],\s*a[01]
** slli\s+[atx][0-9]+,\s*[atx][0-9],\s*32
** srli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*32
** sltu\s+[atx][0-9]+,\s*[atx][0-9]+,\s*[atx][0-9]+
Expand Down

0 comments on commit 879f401

Please sign in to comment.