|
From: <sv...@va...> - 2014-09-27 05:33:16
|
Author: petarj
Date: Sat Sep 27 06:33:07 2014
New Revision: 14571
Log:
mips64: run FPU tests only when FPU is available
Check whether the target platform is meant to have an FPU before executing
tests that make use of a floating-point unit.
Modified:
trunk/none/tests/mips64/fpu_arithmetic.vgtest
trunk/none/tests/mips64/fpu_branches.vgtest
trunk/none/tests/mips64/fpu_control_word.vgtest
trunk/none/tests/mips64/fpu_load_store.vgtest
trunk/none/tests/mips64/load_store_unaligned.vgtest
trunk/none/tests/mips64/move_instructions.vgtest
trunk/none/tests/mips64/round.vgtest
trunk/none/tests/mips64/test_fcsr.vgtest
trunk/tests/mips_features.c
Modified: trunk/none/tests/mips64/fpu_arithmetic.vgtest
==============================================================================
--- trunk/none/tests/mips64/fpu_arithmetic.vgtest (original)
+++ trunk/none/tests/mips64/fpu_arithmetic.vgtest Sat Sep 27 06:33:07 2014
@@ -1,2 +1,3 @@
prog: fpu_arithmetic
+prereq: ../../../tests/mips_features fpu
vgopts: -q
Modified: trunk/none/tests/mips64/fpu_branches.vgtest
==============================================================================
--- trunk/none/tests/mips64/fpu_branches.vgtest (original)
+++ trunk/none/tests/mips64/fpu_branches.vgtest Sat Sep 27 06:33:07 2014
@@ -1,2 +1,3 @@
prog: fpu_branches
+prereq: ../../../tests/mips_features fpu
vgopts: -q
Modified: trunk/none/tests/mips64/fpu_control_word.vgtest
==============================================================================
--- trunk/none/tests/mips64/fpu_control_word.vgtest (original)
+++ trunk/none/tests/mips64/fpu_control_word.vgtest Sat Sep 27 06:33:07 2014
@@ -1,2 +1,3 @@
prog: fpu_control_word
+prereq: ../../../tests/mips_features fpu
vgopts: -q
Modified: trunk/none/tests/mips64/fpu_load_store.vgtest
==============================================================================
--- trunk/none/tests/mips64/fpu_load_store.vgtest (original)
+++ trunk/none/tests/mips64/fpu_load_store.vgtest Sat Sep 27 06:33:07 2014
@@ -1,2 +1,3 @@
prog: fpu_load_store
+prereq: ../../../tests/mips_features fpu
vgopts: -q
Modified: trunk/none/tests/mips64/load_store_unaligned.vgtest
==============================================================================
--- trunk/none/tests/mips64/load_store_unaligned.vgtest (original)
+++ trunk/none/tests/mips64/load_store_unaligned.vgtest Sat Sep 27 06:33:07 2014
@@ -1,2 +1,3 @@
prog: load_store_unaligned
+prereq: ../../../tests/mips_features fpu
vgopts: -q
Modified: trunk/none/tests/mips64/move_instructions.vgtest
==============================================================================
--- trunk/none/tests/mips64/move_instructions.vgtest (original)
+++ trunk/none/tests/mips64/move_instructions.vgtest Sat Sep 27 06:33:07 2014
@@ -1,2 +1,3 @@
prog: move_instructions
+prereq: ../../../tests/mips_features fpu
vgopts: -q
Modified: trunk/none/tests/mips64/round.vgtest
==============================================================================
--- trunk/none/tests/mips64/round.vgtest (original)
+++ trunk/none/tests/mips64/round.vgtest Sat Sep 27 06:33:07 2014
@@ -1,2 +1,3 @@
prog: round
+prereq: ../../../tests/mips_features fpu
vgopts: -q
Modified: trunk/none/tests/mips64/test_fcsr.vgtest
==============================================================================
--- trunk/none/tests/mips64/test_fcsr.vgtest (original)
+++ trunk/none/tests/mips64/test_fcsr.vgtest Sat Sep 27 06:33:07 2014
@@ -1,2 +1,3 @@
prog: test_fcsr
+prereq: ../../../tests/mips_features fpu
vgopts: -q
Modified: trunk/tests/mips_features.c
==============================================================================
--- trunk/tests/mips_features.c (original)
+++ trunk/tests/mips_features.c Sat Sep 27 06:33:07 2014
@@ -47,7 +47,7 @@
static int go(char *feature)
{
int cpuinfo;
- if (strcmp(feature, "hard-float") == 0) {
+ if (strcmp(feature, "fpu") == 0) {
#if defined(__mips_hard_float)
/* This is not a runtime detection.
If mips_features is built as hard-float, the assumption is that
|