thumb2-slow-flash-data.c: Add missing typespec for labelref and check use of constant...
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 9 Nov 2015 10:29:06 +0000 (10:29 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Mon, 9 Nov 2015 10:29:06 +0000 (10:29 +0000)
2015-11-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    * gcc.target/arm/thumb2-slow-flash-data.c: Add missing typespec for
    labelref and check use of constant pool by looking for .word and
    similar directives.

From-SVN: r230010

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/thumb2-slow-flash-data.c

index bcca479..4cd50cd 100644 (file)
@@ -1,3 +1,9 @@
+2015-11-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * gcc.target/arm/thumb2-slow-flash-data.c: Add missing typespec for
+       labelref and check use of constant pool by looking for .word and
+       similar directives.
+
 2015-11-09  Igor Zamyatin  <igor.zamyatin@intel.com>
 
        PR target/66326
index 9852ea5..089a72b 100644 (file)
@@ -50,7 +50,7 @@ int
 foo (int a, int b)
 {
   int i;
-  volatile *labelref = &&label1;
+  volatile int *labelref = &&label1;
 
   if (a > b)
     {
@@ -70,5 +70,4 @@ label1:
   return a + b;
 }
 
-/* { dg-final { scan-assembler-times "movt" 13 } } */
-/* { dg-final { scan-assembler-times "movt.*LC0\\+4" 1 } } */
+/* { dg-final { scan-assembler-not "\\.(float|l\\?double|\d?byte|short|int|long|quad|word)\\s+\[^.\]" } } */