]> git.ipfire.org Git - thirdparty/gcc.git/commit
s390: Fix up *cmp_and_trap_unsigned_int<mode> constraints [PR104775]
authorJakub Jelinek <jakub@redhat.com>
Mon, 7 Mar 2022 10:14:04 +0000 (11:14 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 10 May 2022 08:14:34 +0000 (10:14 +0200)
commit2183785c198ef17138985509cedf5051b3d58452
treed45eb10d6efe71a9745f6119b8dec5e4bf50a5ff
parent3749dcd31f55ac72a162ecf83a40fa3278d3b086
s390: Fix up *cmp_and_trap_unsigned_int<mode> constraints [PR104775]

The following testcase fails to assemble due to clgte %r6,0(%r1,%r10)
insn not being accepted by assembler.
My rough understanding is that in the RSY-b insn format the spot
in other formats used for index registers is used instead for M3 what
kind of comparison it is, so this patch follows what other similar
instructions use for constraint (i.e. one without index register).

2022-03-07  Jakub Jelinek  <jakub@redhat.com>

PR target/104775
* config/s390/s390.md (*cmp_and_trap_unsigned_int<mode>): Use
S constraint instead of T in the last alternative.

* gcc.target/s390/pr104775.c: New test.

(cherry picked from commit 2472dcaa8cb9e02e902f83d419c3ee7e0f3d9041)
gcc/config/s390/s390.md
gcc/testsuite/gcc.target/s390/pr104775.c [new file with mode: 0644]