From e93b5262fdec906660ce7b7763d0e76e705f0803 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Tue, 3 Dec 2019 16:20:29 +0000 Subject: [PATCH] Add missing amdgcn vcondu patterns 2019-12-03 Andrew Stubbs gcc/ * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE for the data mode. From-SVN: r278940 --- gcc/ChangeLog | 5 +++++ gcc/config/gcn/gcn-valu.md | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9efc808eb87..2902cdc7344 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-12-03 Andrew Stubbs + + * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE + for the data mode. + 2019-12-03 Richard Biener PR tree-optimization/92758 diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md index 66b822962ae..f3262e22a02 100644 --- a/gcc/config/gcn/gcn-valu.md +++ b/gcc/config/gcn/gcn-valu.md @@ -2596,10 +2596,10 @@ DONE; }) -(define_expand "vcondu" - [(match_operand:VEC_1REG_INT_MODE 0 "register_operand") - (match_operand:VEC_1REG_INT_MODE 1 "gcn_vop3_operand") - (match_operand:VEC_1REG_INT_MODE 2 "gcn_alu_operand") +(define_expand "vcondu" + [(match_operand:VEC_1REG_MODE 0 "register_operand") + (match_operand:VEC_1REG_MODE 1 "gcn_vop3_operand") + (match_operand:VEC_1REG_MODE 2 "gcn_alu_operand") (match_operator 3 "comparison_operator" [(match_operand:VEC_1REG_INT_ALT 4 "gcn_alu_operand") (match_operand:VEC_1REG_INT_ALT 5 "gcn_vop3_operand")])] @@ -2608,15 +2608,15 @@ rtx tmp = gen_reg_rtx (DImode); emit_insn (gen_vec_cmpdi (tmp, operands[3], operands[4], operands[5])); - emit_insn (gen_vcond_mask_di + emit_insn (gen_vcond_mask_di (operands[0], operands[1], operands[2], tmp)); DONE; }) -(define_expand "vcondu_exec" - [(match_operand:VEC_1REG_INT_MODE 0 "register_operand") - (match_operand:VEC_1REG_INT_MODE 1 "gcn_vop3_operand") - (match_operand:VEC_1REG_INT_MODE 2 "gcn_alu_operand") +(define_expand "vcondu_exec" + [(match_operand:VEC_1REG_MODE 0 "register_operand") + (match_operand:VEC_1REG_MODE 1 "gcn_vop3_operand") + (match_operand:VEC_1REG_MODE 2 "gcn_alu_operand") (match_operator 3 "comparison_operator" [(match_operand:VEC_1REG_INT_ALT 4 "gcn_alu_operand") (match_operand:VEC_1REG_INT_ALT 5 "gcn_vop3_operand")]) @@ -2626,7 +2626,7 @@ rtx tmp = gen_reg_rtx (DImode); emit_insn (gen_vec_cmpdi_exec (tmp, operands[3], operands[4], operands[5], operands[6])); - emit_insn (gen_vcond_mask_di + emit_insn (gen_vcond_mask_di (operands[0], operands[1], operands[2], tmp)); DONE; }) -- 2.30.2