]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Correct vsx operands output for xxeval [PR110741]
authorKewen Lin <linkw@linux.ibm.com>
Wed, 26 Jul 2023 08:42:29 +0000 (03:42 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Wed, 26 Jul 2023 08:43:52 +0000 (03:43 -0500)
commit96a839233ced3a0bfc3d5492a6d8b102e6981472
tree651583863dbe4193d5f03179f6d95cddc6ced6da
parent39f117d6c875bb3be87eea1ee4c28e88120773d0
rs6000: Correct vsx operands output for xxeval [PR110741]

PR110741 exposes one issue that we didn't use the correct
character for vsx operands in output operand substitution,
consequently it can map to the wrong registers which hold
some unexpected values.

PR target/110741

gcc/ChangeLog:

* config/rs6000/vsx.md (define_insn xxeval): Correct vsx
operands output with "x".

gcc/testsuite/ChangeLog:

* g++.target/powerpc/pr110741.C: New test.
gcc/config/rs6000/vsx.md
gcc/testsuite/g++.target/powerpc/pr110741.C [new file with mode: 0644]