summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-02 08:26:51 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-02 08:26:51 +0000
commit5e9f07a2a36f8ff6d353cfca6bdedf58906ad298 (patch)
treecd3b58dca0bfe438bf3257e73c6e5e40712026c2
parent049cd98b946e1d2eb27c4ea436c460a7b33ac1b7 (diff)
downloadgcc-5e9f07a2a36f8ff6d353cfca6bdedf58906ad298.tar.gz
Enable tests on x86-64.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57737 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/asm3.C2
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/asm1.C2
-rw-r--r--gcc/testsuite/gcc.dg/20000614-2.c2
-rw-r--r--gcc/testsuite/gcc.dg/20020103-1.c5
-rw-r--r--gcc/testsuite/gcc.dg/20020919-1.c5
-rw-r--r--gcc/testsuite/gcc.dg/980211-1.c4
-rw-r--r--gcc/testsuite/gcc.dg/inline-2.c2
8 files changed, 21 insertions, 8 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index f1972fe49a3..d7459cf97ab 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2002-10-02 Andreas Jaeger <aj@suse.de>
+
+ * gcc.dg/20020919-1.c, gcc.dg/inline-2.c, gcc.dg/980211-1.c,
+ gcc.dg/20020103-1.c, gcc.dg/20000614-2.c,
+ g++.old-deja/g++.pt/asm1.C, g++.old-deja/g++.other/asm3.C: Enable
+ on x86-64.
+
2002-10-01 Mark Mitchell <mark@codesourcery.com>
* gcc.dg/empty1.C: Fix typo.
diff --git a/gcc/testsuite/g++.old-deja/g++.other/asm3.C b/gcc/testsuite/g++.old-deja/g++.other/asm3.C
index d37de69329a..bf0e423db33 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/asm3.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/asm3.C
@@ -1,5 +1,5 @@
// Build don't link:
-// Skip if not target: i?86-*-*
+// Skip if not target: i?86-*-* x86_64-*-*
// Special g++ Options: -O2
typedef unsigned long long uint64;
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/asm1.C b/gcc/testsuite/g++.old-deja/g++.pt/asm1.C
index d093002ff8f..70092521dc4 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/asm1.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/asm1.C
@@ -1,6 +1,6 @@
// Build don't link:
// Origin: "Weidmann, Nicholas" <nicholas.weidmann@swx.ch>
-// Skip if not target: i?86-*-linux*
+// Skip if not target: i?86-*-linux* x86_64-*-linux
template<int i> int foo(int v)
{
diff --git a/gcc/testsuite/gcc.dg/20000614-2.c b/gcc/testsuite/gcc.dg/20000614-2.c
index 17a20205a3d..eb30fc6cd55 100644
--- a/gcc/testsuite/gcc.dg/20000614-2.c
+++ b/gcc/testsuite/gcc.dg/20000614-2.c
@@ -1,4 +1,4 @@
-/* { dg-do run { target i?86-*-* } } */
+/* { dg-do run { target i?86-*-* x86_64-*-*} } */
/* { dg-options "-O2 -fno-strength-reduce" } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/20020103-1.c b/gcc/testsuite/gcc.dg/20020103-1.c
index 7a5fdbe4b45..5197fa67e1f 100644
--- a/gcc/testsuite/gcc.dg/20020103-1.c
+++ b/gcc/testsuite/gcc.dg/20020103-1.c
@@ -1,6 +1,6 @@
/* Verify that constant equivalences get reloaded properly, either by being
spilled to the stack, or regenerated, but not dropped to memory. */
-/* { dg-do compile { target i?86-*-* powerpc-*-* rs6000-*-* alpha*-*-* } } */
+/* { dg-do compile { target i?86-*-* powerpc-*-* rs6000-*-* alpha*-*-* x86_64-*-*} } */
/* { dg-options "-O2 -fpic -fno-omit-frame-pointer" } */
/* { dg-final { scan-assembler-not "LC" } } */
@@ -16,6 +16,9 @@
#define clobber \
asm volatile("#asm" : : : "$9", "$10", "$11", "$12", "$13", "$14", \
"$f2", "$f3", "$f4", "$f5", "$f6", "$f7", "$f8", "$f9")
+#elif defined(__x86_64__)
+#define clobber \
+ asm volatile("#asm" : : : "rcx", "rdx", "rsi", "rdi", "r8", "r9", "r10", "r11")
#else
#error no clobber macro defined
#endif
diff --git a/gcc/testsuite/gcc.dg/20020919-1.c b/gcc/testsuite/gcc.dg/20020919-1.c
index daf88581710..0eb6b50bdc9 100644
--- a/gcc/testsuite/gcc.dg/20020919-1.c
+++ b/gcc/testsuite/gcc.dg/20020919-1.c
@@ -8,7 +8,7 @@
You must be this tall ---> fit two long longs in asm-declared registers
to enter this amusement. */
-/* { dg-do compile { target alpha-*-* cris-*-* i?86-*-* mmix-*-* powerpc-*-* rs6000-*-* } } */
+/* { dg-do compile { target alpha-*-* cris-*-* i?86-*-* mmix-*-* powerpc-*-* rs6000-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */
/* Constructed examples; input/output (same register), output, input, and
@@ -42,6 +42,9 @@
# define REG2 "7"
# define REG3 "8"
# define REG4 "9"
+#elif defined (__x86_64__)
+# define REG1 "rax"
+# define REG2 "rdx"
#endif
/* For readability of the tests. */
diff --git a/gcc/testsuite/gcc.dg/980211-1.c b/gcc/testsuite/gcc.dg/980211-1.c
index 11b3c36f172..973a30fbd67 100644
--- a/gcc/testsuite/gcc.dg/980211-1.c
+++ b/gcc/testsuite/gcc.dg/980211-1.c
@@ -1,6 +1,6 @@
-/* Test long double on x86. */
+/* Test long double on x86 and x86-64. */
-/* { dg-do run { target i?86-*-* } } */
+/* { dg-do run { target i?86-*-* x86_64-*-*} } */
/* { dg-options -O2 } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/inline-2.c b/gcc/testsuite/gcc.dg/inline-2.c
index 1320143c519..0049fc8336d 100644
--- a/gcc/testsuite/gcc.dg/inline-2.c
+++ b/gcc/testsuite/gcc.dg/inline-2.c
@@ -15,5 +15,5 @@ int bar(void)
}
/* { dg-final { scan-assembler "bsr" { target alpha*-*-* } } } */
-/* { dg-final { scan-assembler-not "PLT" { target i?86-*-* } } } */
+/* { dg-final { scan-assembler-not "PLT" { target i?86-*-* x86_64-*-* } } } */
/* { dg-final { scan-assembler-not "plt" { target powerpc*-*-* } } } */