[gcc r17-2415] s390: testsuite: Fix constraints for asm-hard-reg-7.c

Stefan Schulze Frielinghaus via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:07407f494c695045a649b5d4e111e9aede76318c

commit r17-2415-g07407f494c695045a649b5d4e111e9aede76318c
Author: Stefan Schulze Frielinghaus <[email protected]>
Date:   Wed Jul 15 14:40:41 2026 +0200

    s390: testsuite: Fix constraints for asm-hard-reg-7.c
    
    gcc/testsuite/ChangeLog:
    
            * gcc.target/s390/asm-hard-reg-7.c: Utilize constraint f for
            floating-point registers.

Diff:
---
 gcc/testsuite/gcc.target/s390/asm-hard-reg-7.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/gcc/testsuite/gcc.target/s390/asm-hard-reg-7.c b/gcc/testsuite/gcc.target/s390/asm-hard-reg-7.c
index 923c9d2aaa39..ef9275327e1b 100644
--- a/gcc/testsuite/gcc.target/s390/asm-hard-reg-7.c
+++ b/gcc/testsuite/gcc.target/s390/asm-hard-reg-7.c
@@ -13,22 +13,22 @@ test (void)
   long double y;
 
   /* Outputs */
-  __asm__ __volatile__ ("" : "=r" (f0), "=r" (f0f2));
-  __asm__ __volatile__ ("" : "=r" (f0f2), "={f0}" (y));  /* { dg-error "multiple outputs to hard register: %f0" } */
-  __asm__ __volatile__ ("" : "={f0}" (x), "=r" (f0f2));  /* { dg-error "multiple outputs to hard register: %f0" } */
+  __asm__ __volatile__ ("" : "=f" (f0), "=f" (f0f2));
+  __asm__ __volatile__ ("" : "=f" (f0f2), "={f0}" (y));  /* { dg-error "multiple outputs to hard register: %f0" } */
+  __asm__ __volatile__ ("" : "={f0}" (x), "=f" (f0f2));  /* { dg-error "multiple outputs to hard register: %f0" } */
 
-  __asm__ __volatile__ ("" : "=r" (f2), "=r" (f0f2));
+  __asm__ __volatile__ ("" : "=f" (f2), "=f" (f0f2));
   __asm__ __volatile__ ("" : "={f2}" (x), "={f0}" (y));  /* { dg-error "multiple outputs to hard register: %f2" } */
-  __asm__ __volatile__ ("" : "=r" (f2), "={f0}" (y));  /* { dg-error "multiple outputs to hard register: %f2" } */
-  __asm__ __volatile__ ("" : "={f2}" (x), "=r" (f0f2));  /* { dg-error "multiple outputs to hard register: %f2" } */
+  __asm__ __volatile__ ("" : "=f" (f2), "={f0}" (y));  /* { dg-error "multiple outputs to hard register: %f2" } */
+  __asm__ __volatile__ ("" : "={f2}" (x), "=f" (f0f2));  /* { dg-error "multiple outputs to hard register: %f2" } */
 
   /* Inputs */
-  __asm__ __volatile__ ("" :: "r" (f0), "r" (f0f2));
-  __asm__ __volatile__ ("" :: "r" (f0f2), "{f0}" (y));  /* { dg-error "multiple inputs to hard register: %f0" } */
-  __asm__ __volatile__ ("" :: "{f0}" (x), "r" (f0f2));  /* { dg-error "multiple inputs to hard register: %f0" } */
+  __asm__ __volatile__ ("" :: "f" (f0), "f" (f0f2));
+  __asm__ __volatile__ ("" :: "f" (f0f2), "{f0}" (y));  /* { dg-error "multiple inputs to hard register: %f0" } */
+  __asm__ __volatile__ ("" :: "{f0}" (x), "f" (f0f2));  /* { dg-error "multiple inputs to hard register: %f0" } */
 
-  __asm__ __volatile__ ("" :: "r" (f2), "r" (f0f2));
+  __asm__ __volatile__ ("" :: "f" (f2), "f" (f0f2));
   __asm__ __volatile__ ("" :: "{f2}" (x), "{f0}" (y));  /* { dg-error "multiple inputs to hard register: %f2" } */
-  __asm__ __volatile__ ("" :: "r" (f2), "{f0}" (y));  /* { dg-error "multiple inputs to hard register: %f2" } */
-  __asm__ __volatile__ ("" :: "{f2}" (x), "r" (f0f2));  /* { dg-error "multiple inputs to hard register: %f2" } */
+  __asm__ __volatile__ ("" :: "f" (f2), "{f0}" (y));  /* { dg-error "multiple inputs to hard register: %f2" } */
+  __asm__ __volatile__ ("" :: "{f2}" (x), "f" (f0f2));  /* { dg-error "multiple inputs to hard register: %f2" } */
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.