summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.misc-tests
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-08 15:58:22 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-08 15:58:22 +0000
commitc6a73f83115c4b0bb92241805cad4f69f646a14e (patch)
treeceb3967dbf08a732475f57723332634514a7ec6a /gcc/testsuite/gcc.misc-tests
parent2cb8dec3ceb8515297b3922dae59ffe5c53ce29d (diff)
downloadgcc-c6a73f83115c4b0bb92241805cad4f69f646a14e.tar.gz
2004-07-08 Paolo Bonzini <bonzini@gnu.org>
Jakub Jelinek <jakub@redhat.com> * config/i386/i386.c (override_options): Enable SSE prefetches with -mtune, as long as we are compiling for i686 or higher. All i686 processors accept SSE prefetches as NOPS, some i586's don't. 2004-07-08 Jakub Jelinek <jakub@redhat.com> * gcc.mist-tests/i386-prefetch.exp (PREFETCH_SSE): Change all -march=i386 into -march=i686. Add -march=i686 -mtune=x and -march=x for pentium3, pentium3m, pentium-m, pentium4m, prescott and c3-2. (PREFETCH_3DNOW): Add -march=c3. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.misc-tests')
-rw-r--r--gcc/testsuite/gcc.misc-tests/i386-prefetch.exp23
1 files changed, 17 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp b/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp
index 2290478902d..25a752a6b2c 100644
--- a/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp
+++ b/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -46,16 +46,27 @@ set PREFETCH_NONE [list \
# instructions as nops.
set PREFETCH_SSE [list \
- { -march=i386 -mtune=pentium3 } \
- { -march=i386 -mtune=pentium4 } \
- { -march=i386 -mtune=athlon } \
- { -march=i386 -mtune=athlon-4 } \
+ { -march=i686 -mtune=pentium3 } \
+ { -march=i686 -mtune=pentium3m } \
+ { -march=i686 -mtune=pentium-m } \
+ { -march=i686 -mtune=pentium4 } \
+ { -march=i686 -mtune=pentium4m } \
+ { -march=i686 -mtune=prescott } \
+ { -march=i686 -mtune=athlon } \
+ { -march=i686 -mtune=athlon-4 } \
+ { -march=i686 -mtune=c3-2 } \
{ -march=pentium3 } \
- { -march=pentium4 } ]
+ { -march=pentium3m } \
+ { -march=pentium-m } \
+ { -march=pentium4 } \
+ { -march=pentium4m } \
+ { -march=prescott } \
+ { -march=c3-2 } ]
# Generate 3DNow! prefetch instructions for the following.
set PREFETCH_3DNOW [list \
+ { -march=c3 } \
{ -march=k6-2 } \
{ -march=k6-3 } ]