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]

[Committed] S/390: Adjust gcc.c-torture/execute/pr51933.c testcase


Committed to mainline.

2012-02-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

	* gcc.c-torture/execute/pr51933.c: Modify for s390 31 bit.
---
 gcc/testsuite/gcc.c-torture/execute/pr51933.c |    8 ++++++++
 1 file changed, 8 insertions(+)

Index: gcc/testsuite/gcc.c-torture/execute/pr51933.c
===================================================================
*** gcc/testsuite/gcc.c-torture/execute/pr51933.c.orig
--- gcc/testsuite/gcc.c-torture/execute/pr51933.c
*************** static unsigned char v2[256], v3[256];
*** 6,12 ****
--- 6,20 ----
  __attribute__((noclone, noinline)) void
  foo (void)
  {
+ #if defined(__s390__) && !defined(__zarch__)
+   /* S/390 31 bit cannot deal with more than one literal pool
+      reference per insn.  */
+   asm volatile ("" : : "g" (&v1) : "memory");
+   asm volatile ("" : : "g" (&v2[0]));
+   asm volatile ("" : : "g" (&v3[0]));
+ #else
    asm volatile ("" : : "g" (&v1), "g" (&v2[0]), "g" (&v3[0]) : "memory");
+ #endif
  }
  
  __attribute__((noclone, noinline)) int


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