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)
&& (__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))
&& (__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))