Commit 28b733ea by Andrew Stubbs

amdgcn: Fix wrong-code bug in 64-bit masked add

2020-04-24  Andrew Stubbs  <ams@codesourcery.com>

	gcc/
	* config/gcn/gcn-valu.md (add<mode>_zext_dup2_exec): Fix merge
	of high-part.
	(add<mode>_sext_dup2_exec): Likewise.
parent 9c725245
2020-04-24 Andrew Stubbs <ams@codesourcery.com>
* config/gcn/gcn-valu.md (add<mode>_zext_dup2_exec): Fix merge
of high-part.
(add<mode>_sext_dup2_exec): Likewise.
2020-04-24 Segher Boessenkool <segher@kernel.crashing.org> 2020-04-24 Segher Boessenkool <segher@kernel.crashing.org>
PR target/94710 PR target/94710
......
...@@ -1497,7 +1497,8 @@ ...@@ -1497,7 +1497,8 @@
rtx dsthi = gcn_operand_part (<MODE>mode, operands[0], 1); rtx dsthi = gcn_operand_part (<MODE>mode, operands[0], 1);
emit_insn (gen_vec_duplicate<vnsi>_exec emit_insn (gen_vec_duplicate<vnsi>_exec
(dsthi, gcn_operand_part (DImode, operands[2], 1), (dsthi, gcn_operand_part (DImode, operands[2], 1),
gcn_gen_undef (<VnSI>mode), operands[4])); gcn_operand_part (<MODE>mode, operands[3], 1),
operands[4]));
emit_insn (gen_addc<vnsi>3_exec emit_insn (gen_addc<vnsi>3_exec
(dsthi, dsthi, const0_rtx, vcc, vcc, (dsthi, dsthi, const0_rtx, vcc, vcc,
gcn_operand_part (<MODE>mode, operands[3], 1), gcn_operand_part (<MODE>mode, operands[3], 1),
...@@ -1564,7 +1565,8 @@ ...@@ -1564,7 +1565,8 @@
rtx dsthi = gcn_operand_part (<MODE>mode, operands[0], 1); rtx dsthi = gcn_operand_part (<MODE>mode, operands[0], 1);
emit_insn (gen_vec_duplicate<vnsi>_exec emit_insn (gen_vec_duplicate<vnsi>_exec
(dsthi, gcn_operand_part (DImode, operands[2], 1), (dsthi, gcn_operand_part (DImode, operands[2], 1),
gcn_gen_undef (<VnSI>mode), operands[4])); gcn_operand_part (<MODE>mode, operands[3], 1),
operands[4]));
emit_insn (gen_addc<vnsi>3_exec emit_insn (gen_addc<vnsi>3_exec
(dsthi, dsthi, operands[5], vcc, vcc, (dsthi, dsthi, operands[5], vcc, vcc,
gcn_operand_part (<MODE>mode, operands[3], 1), gcn_operand_part (<MODE>mode, operands[3], 1),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment