]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove uses of operand modifier (%s) in powerpc inline asm.
authorStan Shebs <stanshebs@google.com>
Tue, 16 Feb 2016 21:39:03 +0000 (13:39 -0800)
committerStan Shebs <stanshebs@google.com>
Tue, 16 Feb 2016 21:39:03 +0000 (13:39 -0800)
README.google
sysdeps/powerpc/bits/fenvinline.h

index e615a4968509014b8f945a38b16b0bd08a07f7cd..1b5b4b76b8333e851b5529956c8370c03c3b328b 100644 (file)
@@ -562,3 +562,7 @@ sysdeps/powerpc/*
   For b/18010034, backport IBM optimizations for Power8.
   https://sourceware.org/git/?p=glibc.git;a=shortlog;h=refs/heads/ibm/2.19/master
   (stanshebs, backport)
+
+sysdeps/powerpc/bits/fenvinline.h
+  For b/27191207, remove use of %s modifier in inline asm.
+  (stanshebs, google-local)
index 00336f3b0d93fbc3c6df9bf43f7d9a8c89ce3973..95a261c0857dc411b3877a0cf415ea89cc460af2 100644 (file)
@@ -38,8 +38,8 @@
     && (__excepts) != FE_INVALID)                                            \
    ? ((__excepts) != 0                                                       \
       ? (__extension__ ({ __asm__ __volatile__                               \
-                         ("mtfsb1 %s0"                                       \
-                          : : "i#*X"(__builtin_ffs (__excepts)));            \
+                         ("mtfsb1 %0"                                        \
+                          : : "i#*X"(__builtin_clz (__excepts)));            \
                          0; }))                                              \
       : 0)                                                                   \
    : (feraiseexcept) (__excepts))
@@ -51,8 +51,8 @@
     && (__excepts) != FE_INVALID)                                            \
    ? ((__excepts) != 0                                                       \
       ? (__extension__ ({ __asm__ __volatile__                               \
-                         ("mtfsb0 %s0"                                       \
-                          : : "i#*X"(__builtin_ffs (__excepts)));            \
+                         ("mtfsb0 %0"                                        \
+                          : : "i#*X"(__builtin_clz (__excepts)));            \
                          0; }))                                              \
       : 0)                                                                   \
    : (feclearexcept) (__excepts))