aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2014-11-28 13:54:17 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2014-11-28 05:54:17 -0800
commitf672337f6d90a131b716f1f42cb82b8fd0c43b78 (patch)
tree261065acd014a36d60a312425f6723e2f3a872a3 /gcc
parentd8f21780201caf84894097a23792d754983d3455 (diff)
downloadgcc-f672337f6d90a131b716f1f42cb82b8fd0c43b78.zip
gcc-f672337f6d90a131b716f1f42cb82b8fd0c43b78.tar.gz
gcc-f672337f6d90a131b716f1f42cb82b8fd0c43b78.tar.bz2
Update gcc.target/i386/pr63661.c
* gcc.target/i386/pr63661.c: Replace -mtune=native with -mtune=nehalem. (foo): Replace "!=" with delta. (main): Remove __builtin_printf. From-SVN: r218157
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.target/i386/pr63661.c9
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9b2b5ee..ca28e66 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2014-11-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gcc.target/i386/pr63661.c: Replace -mtune=native with
+ -mtune=nehalem.
+ (foo): Replace "!=" with delta.
+ (main): Remove __builtin_printf.
+
2014-11-28 Renlin Li <renlin.li@arm.com>
PR target/63661
diff --git a/gcc/testsuite/gcc.target/i386/pr63661.c b/gcc/testsuite/gcc.target/i386/pr63661.c
index b851628..a5ffd2f 100644
--- a/gcc/testsuite/gcc.target/i386/pr63661.c
+++ b/gcc/testsuite/gcc.target/i386/pr63661.c
@@ -1,7 +1,7 @@
/* PR target/63661 */
/* { dg-do run } */
/* { dg-require-effective-target fpic } */
-/* { dg-options "-mtune=native -fPIC -O2" } */
+/* { dg-options "-mtune=nehalem -fPIC -O2" } */
static void __attribute__((noinline,noclone,hot))
foo (double a, double q, double *ff, double *gx, int e, int ni)
@@ -11,11 +11,15 @@ foo (double a, double q, double *ff, double *gx, int e, int ni)
double n;
unsigned long long o;
} punner;
+ double d;
punner.n = q;
__builtin_printf("B: 0x%016llx ---- %g\n", punner.o, q);
- if(q != 5)
+ d = q - 5;
+ if(d < 0)
+ d = -d;
+ if (d > 0.1)
__builtin_abort();
}
@@ -71,7 +75,6 @@ main ()
{
double c[1000];
- __builtin_printf("A: 0x%016llx\n", (unsigned long long)c);
bar (1, 5.0, c);
return 0;
}