arm: Fix typos in testcases [PR target/94743]
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 1 Jul 2020 06:48:17 +0000 (06:48 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Wed, 1 Jul 2020 06:54:37 +0000 (06:54 +0000)
In my commit r11-1732, I updated the warning message to include
quotes, but I forgot to update the testcases.

2020-01-07  Christophe Lyon  <christophe.lyon@linaro.org>

PR target/94743

gcc/testsuite/
* gcc.target/arm/pr94743-1-hard.c: Add missing quotes in expected
warning.
* gcc.target/arm/pr94743-1-softfp.c: Likewise.

gcc/testsuite/gcc.target/arm/pr94743-1-hard.c
gcc/testsuite/gcc.target/arm/pr94743-1-softfp.c

index 928b79de3aad2f0e378dc0f70186d412cea19689..b4c961e288f486d297cd7dacc88adfc35cf62814 100644 (file)
@@ -17,13 +17,13 @@ dummy_t global_d1;
 
 /* This function may clobber VFP registers.  */
 __attribute__ ((interrupt("IRQ"))) void IRQ_HDLR_Test(void)
-{ /* { dg-warning { FP registers might be clobbered despite 'interrupt' attribute: compile with -mgeneral-regs-only} "" { target *-*-* } . } */
+{ /* { dg-warning { FP registers might be clobbered despite 'interrupt' attribute: compile with '-mgeneral-regs-only'} "" { target *-*-* } . } */
   global_d.fpdata[3] += global_d.fpdata[3] * global_d1.fpdata[3];
 }
 
 /* This function does not need to clobber VFP registers.  */
 /* Do we want to emit a (useless?) warning?  */
 __attribute__ ((interrupt("IRQ"))) void IRQ_HDLR_Test2(void)
-{ /* { dg-warning { FP registers might be clobbered despite 'interrupt' attribute: compile with -mgeneral-regs-only} "" { target *-*-* } . } */
+{ /* { dg-warning { FP registers might be clobbered despite 'interrupt' attribute: compile with '-mgeneral-regs-only'} "" { target *-*-* } . } */
   global_d.fpdata[3] = 1.0;
 }
index 6113eb622e9b83f0c3e80ce0c7f53d4d64ef793b..33202496c6c1f602daa1467f98103006fcc0ae10 100644 (file)
@@ -17,13 +17,13 @@ dummy_t global_d1;
 
 /* This function may clobber VFP registers.  */
 __attribute__ ((interrupt("IRQ"))) void IRQ_HDLR_Test(void)
-{ /* { dg-warning { FP registers might be clobbered despite 'interrupt' attribute: compile with -mgeneral-regs-only} "" { target *-*-* } . } */
+{ /* { dg-warning { FP registers might be clobbered despite 'interrupt' attribute: compile with '-mgeneral-regs-only'} "" { target *-*-* } . } */
   global_d.fpdata[3] += global_d.fpdata[3] * global_d1.fpdata[3];
 }
 
 /* This function does not need to clobber VFP registers.  */
 /* Do we want to emit a (useless?) warning?  */
 __attribute__ ((interrupt("IRQ"))) void IRQ_HDLR_Test2(void)
-{ /* { dg-warning { FP registers might be clobbered despite 'interrupt' attribute: compile with -mgeneral-regs-only} "" { target *-*-* } . } */
+{ /* { dg-warning { FP registers might be clobbered despite 'interrupt' attribute: compile with '-mgeneral-regs-only'} "" { target *-*-* } . } */
   global_d.fpdata[3] = 1.0;
 }