This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[google] Backport r177357 from trunk to google/gcc-4_6 (issue4862042)


Hi

The trunk patch r177357 fixed an arm target test failure, which also affects
google/gcc-4_6, OK to port it to google/gcc-4_6?

Tested with
make check-gcc RUNTESTFLAGS="--target_board=arm-sim/arch=armv7-a arm.exp=vfp-1.c"

thanks
Carrot


2011-08-12  Guozhi Wei  <carrot@google.com>

	Backport r177357 from trunk.

	2011-08-04  Ian Bolton  <ian.bolton@arm.com>

		* gcc.target/arm/vfp-1.c: no large negative offsets on Thumb2.

Index: gcc.target/arm/vfp-1.c
===================================================================
--- gcc.target/arm/vfp-1.c	(revision 177688)
+++ gcc.target/arm/vfp-1.c	(working copy)
@@ -127,13 +127,13 @@ void test_convert () {
 
 void test_ldst (float f[], double d[]) {
   /* { dg-final { scan-assembler "flds.+ \\\[r0, #1020\\\]" } } */
-  /* { dg-final { scan-assembler "flds.+ \\\[r0, #-1020\\\]" } } */
+  /* { dg-final { scan-assembler "flds.+ \\\[r\[0-9\], #-1020\\\]" { target { arm32 && { ! arm_thumb2_ok } } } } } */
   /* { dg-final { scan-assembler "add.+ r0, #1024" } } */
-  /* { dg-final { scan-assembler "fsts.+ \\\[r0, #0\\\]\n" } } */
+  /* { dg-final { scan-assembler "fsts.+ \\\[r\[0-9\], #0\\\]\n" } } */
   f[256] = f[255] + f[-255];
 
   /* { dg-final { scan-assembler "fldd.+ \\\[r1, #1016\\\]" } } */
-  /* { dg-final { scan-assembler "fldd.+ \\\[r1, #-1016\\\]" } } */
+  /* { dg-final { scan-assembler "fldd.+ \\\[r\[1-9\], #-1016\\\]" { target { arm32 && { ! arm_thumb2_ok } } } } } */
   /* { dg-final { scan-assembler "fstd.+ \\\[r1, #256\\\]" } } */
   d[32] = d[127] + d[-127];
 }


--
This patch is available for review at http://codereview.appspot.com/4862042


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]