Module: xenomai-forge
Branch: next
Commit: f0170ae035cdda2485588c2c0a8598c6a6cd7d8b
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=f0170ae035cdda2485588c2c0a8598c6a6cd7d8b

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Apr 16 09:20:08 2013 +0200

testsuite/switchtest: fix x86 SSE/AVX FPU check helpers

Input and output constraints were mixed up: the functions read the
registers.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 include/asm-x86/fptest.h |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/include/asm-x86/fptest.h b/include/asm-x86/fptest.h
index 9c484b0..c2dabdb 100644
--- a/include/asm-x86/fptest.h
+++ b/include/asm-x86/fptest.h
@@ -121,11 +121,10 @@ static inline unsigned fp_regs_check(unsigned val)
                        "vmovupd %%ymm5,%5;"
                        "vmovupd %%ymm6,%6;"
                        "vmovupd %%ymm7,%7;"
-                       :
-                       : "m" (vec[0][0]), "m" (vec[1][0]),
-                         "m" (vec[2][0]), "m" (vec[3][0]),
-                         "m" (vec[4][0]), "m" (vec[5][0]),
-                         "m" (vec[6][0]), "m" (vec[7][0]));
+                       : "=m" (vec[0][0]), "=m" (vec[1][0]),
+                         "=m" (vec[2][0]), "=m" (vec[3][0]),
+                         "=m" (vec[4][0]), "=m" (vec[5][0]),
+                         "=m" (vec[6][0]), "=m" (vec[7][0]));
        } else if (fp_features & FP_FEATURE_SSE) {
                __asm__ __volatile__(
                        "movupd %%xmm0,%0;"
@@ -136,11 +135,10 @@ static inline unsigned fp_regs_check(unsigned val)
                        "movupd %%xmm5,%5;"
                        "movupd %%xmm6,%6;"
                        "movupd %%xmm7,%7;"
-                       :
-                       : "m" (vec[0][0]), "m" (vec[1][0]),
-                         "m" (vec[2][0]), "m" (vec[3][0]),
-                         "m" (vec[4][0]), "m" (vec[5][0]),
-                         "m" (vec[6][0]), "m" (vec[7][0]));
+                       : "=m" (vec[0][0]), "=m" (vec[1][0]),
+                         "=m" (vec[2][0]), "=m" (vec[3][0]),
+                         "=m" (vec[4][0]), "=m" (vec[5][0]),
+                         "=m" (vec[6][0]), "=m" (vec[7][0]));
        }
 
        for (i = 0; i < 8; i++)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to