diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in
index 0b7f0d3251..a1faf47426 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -8680,8 +8680,8 @@ tanpi min
 tanpi -min
 tanpi min_subnorm
 tanpi -min_subnorm
-tanpi max
-tanpi -max
+tanpi max xfail-rounding:ibm128-libgcc
+tanpi -max xfail-rounding:ibm128-libgcc
 tanpi 1
 tanpi -1
 tanpi 2
@@ -8744,8 +8744,8 @@ tanpi 0x1fffff.6p0
 tanpi -0x1fffff.6p0
 tanpi 0x1fffff.ap0
 tanpi -0x1fffff.ap0
-tanpi 0x3ffffffffffff.6p0
-tanpi -0x3ffffffffffff.6p0
+tanpi 0x3ffffffffffff.6p0 xfail-rounding:ibm128-libgcc
+tanpi -0x3ffffffffffff.6p0 xfail-rounding:ibm128-libgcc
 tanpi 0x3ffffffffffff.ap0
 tanpi -0x3ffffffffffff.ap0
 tanpi 0x1fffffffffffffff.6p0
@@ -8754,8 +8754,8 @@ tanpi 0x1fffffffffffffff.ap0
 tanpi -0x1fffffffffffffff.ap0
 tanpi 0x3fffffffffffffffffffffffffff.6p0
 tanpi -0x3fffffffffffffffffffffffffff.6p0
-tanpi 0x3fffffffffffffffffffffffffff.ap0
-tanpi -0x3fffffffffffffffffffffffffff.ap0
+tanpi 0x3fffffffffffffffffffffffffff.ap0 xfail-rounding:ibm128-libgcc
+tanpi -0x3fffffffffffffffffffffffffff.ap0 xfail-rounding:ibm128-libgcc
 
 tgamma 0.5
 tgamma -0.5
diff --git a/math/auto-libm-test-out-tanpi b/math/auto-libm-test-out-tanpi
index 241a84c0a7..29a6ac2e52 100644
--- a/math/auto-libm-test-out-tanpi
+++ b/math/auto-libm-test-out-tanpi
@@ -364,144 +364,144 @@ tanpi -min_subnorm
 = tanpi tonearest binary128 -0x4p-16496 : -0xcp-16496 : inexact-ok underflow errno-erange-ok
 = tanpi towardzero binary128 -0x4p-16496 : -0xcp-16496 : inexact-ok underflow errno-erange-ok
 = tanpi upward binary128 -0x4p-16496 : -0xcp-16496 : inexact-ok underflow errno-erange-ok
-tanpi max
-= tanpi downward binary32 0xf.fffffp+124 : 0x0p+0 : inexact-ok
+tanpi max xfail-rounding:ibm128-libgcc
+= tanpi downward binary32 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary32 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary32 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi upward binary32 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi downward binary64 0xf.fffffp+124 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary32 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary32 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary64 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi upward binary64 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi downward intel96 0xf.fffffp+124 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary64 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi towardzero intel96 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi upward intel96 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi downward m68k96 0xf.fffffp+124 : 0x0p+0 : inexact-ok
+= tanpi towardzero intel96 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi upward m68k96 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0xf.fffffp+124 : 0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi downward ibm128 0xf.fffffp+124 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi upward ibm128 0xf.fffffp+124 : 0x0p+0 : inexact-ok
-= tanpi downward binary64 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 0xf.fffffp+124 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary64 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi upward binary64 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi downward intel96 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary64 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi towardzero intel96 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi upward intel96 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi downward m68k96 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
+= tanpi towardzero intel96 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi upward m68k96 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi downward ibm128 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi upward ibm128 0xf.ffffffffffff8p+1020 : 0x0p+0 : inexact-ok
-= tanpi downward intel96 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 0xf.ffffffffffff8p+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 0xf.fffffffffffffffp+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
-= tanpi towardzero intel96 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
-= tanpi upward intel96 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
-= tanpi downward m68k96 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
+= tanpi towardzero intel96 0xf.fffffffffffffffp+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 0xf.fffffffffffffffp+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 0xf.fffffffffffffffp+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
-= tanpi upward m68k96 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 0xf.fffffffffffffffp+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 0xf.fffffffffffffffp+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0xf.fffffffffffffffp+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0xf.fffffffffffffffp+16380 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0xf.fffffffffffffffffffffffffff8p+16380 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0xf.fffffffffffffffp+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0xf.fffffffffffffffp+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0xf.fffffffffffffffffffffffffff8p+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0xf.fffffffffffffffffffffffffff8p+16380 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0xf.fffffffffffffffffffffffffff8p+16380 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0xf.fffffffffffffffffffffffffff8p+16380 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0xf.fffffffffffffffffffffffffff8p+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0xf.fffffffffffffffffffffffffff8p+16380 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : inexact-ok
-= tanpi downward ibm128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : inexact-ok
-= tanpi upward ibm128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : inexact-ok
-tanpi -max
-= tanpi downward binary32 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 0xf.ffffffffffffbffffffffffffcp+1020 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+tanpi -max xfail-rounding:ibm128-libgcc
+= tanpi downward binary32 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary32 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary32 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi upward binary32 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi downward binary64 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary32 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary32 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary64 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi upward binary64 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi downward intel96 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary64 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi towardzero intel96 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi upward intel96 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi downward m68k96 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
+= tanpi towardzero intel96 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi upward m68k96 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi downward ibm128 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi upward ibm128 -0xf.fffffp+124 : -0x0p+0 : inexact-ok
-= tanpi downward binary64 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 -0xf.fffffp+124 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary64 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi upward binary64 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi downward intel96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary64 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi towardzero intel96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi upward intel96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi downward m68k96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
+= tanpi towardzero intel96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi upward m68k96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi downward ibm128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi upward ibm128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : inexact-ok
-= tanpi downward intel96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 -0xf.ffffffffffff8p+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
-= tanpi towardzero intel96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
-= tanpi upward intel96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
-= tanpi downward m68k96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
+= tanpi towardzero intel96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
-= tanpi upward m68k96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 -0xf.fffffffffffffffp+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0xf.fffffffffffffffp+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0xf.fffffffffffffffp+16380 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0xf.fffffffffffffffffffffffffff8p+16380 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0xf.fffffffffffffffp+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0xf.fffffffffffffffp+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0xf.fffffffffffffffffffffffffff8p+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0xf.fffffffffffffffffffffffffff8p+16380 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0xf.fffffffffffffffffffffffffff8p+16380 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0xf.fffffffffffffffffffffffffff8p+16380 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0xf.fffffffffffffffffffffffffff8p+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0xf.fffffffffffffffffffffffffff8p+16380 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : inexact-ok
-= tanpi downward ibm128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : inexact-ok
-= tanpi upward ibm128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 -0xf.ffffffffffffbffffffffffffcp+1020 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 tanpi 1
 = tanpi downward binary32 0x1p+0 : -0x0p+0 : inexact-ok
 = tanpi tonearest binary32 0x1p+0 : -0x0p+0 : inexact-ok
@@ -8052,144 +8052,144 @@ tanpi -0x1fffff.ap0
 = tanpi tonearest ibm128 -0x1.fffffap+20 : 0x2.6a09e667f3bcc908b2fb1366ebp+0 : inexact-ok
 = tanpi towardzero ibm128 -0x1.fffffap+20 : 0x2.6a09e667f3bcc908b2fb1366eap+0 : inexact-ok
 = tanpi upward ibm128 -0x1.fffffap+20 : 0x2.6a09e667f3bcc908b2fb1366ebp+0 : inexact-ok
-tanpi 0x3ffffffffffff.6p0
-= tanpi downward binary32 0x4p+48 : 0x0p+0 : inexact-ok
+tanpi 0x3ffffffffffff.6p0 xfail-rounding:ibm128-libgcc
+= tanpi downward binary32 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary32 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary32 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi upward binary32 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi downward binary64 0x4p+48 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary32 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary32 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary64 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi upward binary64 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi downward intel96 0x4p+48 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary64 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero intel96 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi upward intel96 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi downward m68k96 0x4p+48 : 0x0p+0 : inexact-ok
+= tanpi towardzero intel96 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi upward m68k96 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0x4p+48 : 0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi downward ibm128 0x4p+48 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi upward ibm128 0x4p+48 : 0x0p+0 : inexact-ok
-= tanpi downward binary32 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 0x4p+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary32 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary32 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary32 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi upward binary32 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi downward binary64 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary32 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary32 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary64 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi upward binary64 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi downward intel96 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary64 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero intel96 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi upward intel96 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi downward m68k96 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
+= tanpi towardzero intel96 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi upward m68k96 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi downward ibm128 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi upward ibm128 0x3.fffffcp+48 : 0x0p+0 : inexact-ok
-= tanpi downward binary64 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bccp+0 : inexact-ok
+= tanpi towardzero ibm128 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 0x3.fffffcp+48 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bccp+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bccp+0 : inexact-ok
-= tanpi towardzero binary64 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bccp+0 : inexact-ok
-= tanpi upward binary64 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcep+0 : inexact-ok
-= tanpi downward intel96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908p+0 : inexact-ok
+= tanpi towardzero binary64 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bccp+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcep+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908p+0 : inexact-ok
-= tanpi towardzero intel96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908p+0 : inexact-ok
-= tanpi upward intel96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc90cp+0 : inexact-ok
-= tanpi downward m68k96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908p+0 : inexact-ok
+= tanpi towardzero intel96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc90cp+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908p+0 : inexact-ok
-= tanpi towardzero m68k96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908p+0 : inexact-ok
-= tanpi upward m68k96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc90cp+0 : inexact-ok
-= tanpi downward binary128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366ea94p+0 : inexact-ok
+= tanpi towardzero m68k96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc90cp+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366ea94p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366ea96p+0 : inexact-ok
-= tanpi towardzero binary128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366ea94p+0 : inexact-ok
-= tanpi upward binary128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366ea96p+0 : inexact-ok
-= tanpi downward ibm128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366eap+0 : inexact-ok
+= tanpi towardzero binary128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366ea94p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366ea96p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366eap+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366ebp+0 : inexact-ok
-= tanpi towardzero ibm128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366eap+0 : inexact-ok
-= tanpi upward ibm128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366ebp+0 : inexact-ok
-tanpi -0x3ffffffffffff.6p0
-= tanpi downward binary32 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366eap+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 0x3.ffffffffffff6p+48 : 0x2.6a09e667f3bcc908b2fb1366ebp+0 : xfail:ibm128-libgcc inexact-ok
+tanpi -0x3ffffffffffff.6p0 xfail-rounding:ibm128-libgcc
+= tanpi downward binary32 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary32 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary32 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi upward binary32 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi downward binary64 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary32 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary32 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary64 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi upward binary64 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi downward intel96 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary64 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero intel96 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi upward intel96 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi downward m68k96 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero intel96 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi upward m68k96 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi downward ibm128 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi upward ibm128 -0x3.fffffcp+48 : -0x0p+0 : inexact-ok
-= tanpi downward binary32 -0x4p+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 -0x3.fffffcp+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary32 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary32 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary32 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi upward binary32 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi downward binary64 -0x4p+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary32 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary32 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary64 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi upward binary64 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi downward intel96 -0x4p+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary64 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero intel96 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi upward intel96 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi downward m68k96 -0x4p+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero intel96 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi upward m68k96 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0x4p+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi downward ibm128 -0x4p+48 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi upward ibm128 -0x4p+48 : -0x0p+0 : inexact-ok
-= tanpi downward binary64 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcep+0 : inexact-ok
+= tanpi towardzero ibm128 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 -0x4p+48 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcep+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bccp+0 : inexact-ok
-= tanpi towardzero binary64 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bccp+0 : inexact-ok
-= tanpi upward binary64 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bccp+0 : inexact-ok
-= tanpi downward intel96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc90cp+0 : inexact-ok
+= tanpi towardzero binary64 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bccp+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bccp+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc90cp+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908p+0 : inexact-ok
-= tanpi towardzero intel96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908p+0 : inexact-ok
-= tanpi upward intel96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908p+0 : inexact-ok
-= tanpi downward m68k96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc90cp+0 : inexact-ok
+= tanpi towardzero intel96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc90cp+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908p+0 : inexact-ok
-= tanpi towardzero m68k96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908p+0 : inexact-ok
-= tanpi upward m68k96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908p+0 : inexact-ok
-= tanpi downward binary128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366ea96p+0 : inexact-ok
+= tanpi towardzero m68k96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366ea96p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366ea96p+0 : inexact-ok
-= tanpi towardzero binary128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366ea94p+0 : inexact-ok
-= tanpi upward binary128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366ea94p+0 : inexact-ok
-= tanpi downward ibm128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366ebp+0 : inexact-ok
+= tanpi towardzero binary128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366ea94p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366ea94p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366ebp+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366ebp+0 : inexact-ok
-= tanpi towardzero ibm128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366eap+0 : inexact-ok
-= tanpi upward ibm128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366eap+0 : inexact-ok
+= tanpi towardzero ibm128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366eap+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 -0x3.ffffffffffff6p+48 : -0x2.6a09e667f3bcc908b2fb1366eap+0 : xfail:ibm128-libgcc inexact-ok
 tanpi 0x3ffffffffffff.ap0
 = tanpi downward binary32 0x4p+48 : 0x0p+0 : inexact-ok
 = tanpi tonearest binary32 0x4p+48 : 0x0p+0 : inexact-ok
@@ -8862,197 +8862,197 @@ tanpi -0x3fffffffffffffffffffffffffff.6p0
 = tanpi tonearest ibm128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : inexact-ok
 = tanpi towardzero ibm128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : inexact-ok
 = tanpi upward ibm128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : inexact-ok
-tanpi 0x3fffffffffffffffffffffffffff.ap0
-= tanpi downward binary32 0x4p+108 : 0x0p+0 : inexact-ok
+tanpi 0x3fffffffffffffffffffffffffff.ap0 xfail-rounding:ibm128-libgcc
+= tanpi downward binary32 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary32 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary32 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi upward binary32 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi downward binary64 0x4p+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary32 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary32 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary64 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi upward binary64 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi downward intel96 0x4p+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary64 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero intel96 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi upward intel96 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi downward m68k96 0x4p+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero intel96 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi upward m68k96 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0x4p+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi downward ibm128 0x4p+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi upward ibm128 0x4p+108 : 0x0p+0 : inexact-ok
-= tanpi downward binary32 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 0x4p+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary32 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary32 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary32 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi upward binary32 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi downward binary64 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary32 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary32 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary64 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi upward binary64 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi downward intel96 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary64 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero intel96 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi upward intel96 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi downward m68k96 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero intel96 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi upward m68k96 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi downward ibm128 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi upward ibm128 0x3.fffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi downward binary64 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 0x3.fffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary64 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi upward binary64 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi downward intel96 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary64 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero intel96 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi upward intel96 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi downward m68k96 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero intel96 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi upward m68k96 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi downward ibm128 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi upward ibm128 0x3.ffffffffffffep+108 : 0x0p+0 : inexact-ok
-= tanpi downward intel96 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 0x3.ffffffffffffep+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero intel96 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi upward intel96 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi downward m68k96 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero intel96 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi upward m68k96 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi downward ibm128 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi upward ibm128 0x3.fffffffffffffffcp+108 : 0x0p+0 : inexact-ok
-= tanpi downward binary128 0x3.fffffffffffffffffffffffffffap+108 : -0x2.6a09e667f3bcc908b2fb1366ea96p+0 : inexact-ok
+= tanpi towardzero ibm128 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 0x3.fffffffffffffffcp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0x3.fffffffffffffffffffffffffffap+108 : -0x2.6a09e667f3bcc908b2fb1366ea96p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0x3.fffffffffffffffffffffffffffap+108 : -0x2.6a09e667f3bcc908b2fb1366ea96p+0 : inexact-ok
-= tanpi towardzero binary128 0x3.fffffffffffffffffffffffffffap+108 : -0x2.6a09e667f3bcc908b2fb1366ea94p+0 : inexact-ok
-= tanpi upward binary128 0x3.fffffffffffffffffffffffffffap+108 : -0x2.6a09e667f3bcc908b2fb1366ea94p+0 : inexact-ok
-= tanpi downward binary128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0x3.fffffffffffffffffffffffffffap+108 : -0x2.6a09e667f3bcc908b2fb1366ea94p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0x3.fffffffffffffffffffffffffffap+108 : -0x2.6a09e667f3bcc908b2fb1366ea94p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero binary128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : inexact-ok
-= tanpi upward binary128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : inexact-ok
-= tanpi downward ibm128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : inexact-ok
+= tanpi towardzero binary128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : inexact-ok
-= tanpi upward ibm128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : inexact-ok
-tanpi -0x3fffffffffffffffffffffffffff.ap0
-= tanpi downward binary32 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 0x3.ffffffffffffffffffffffffffp+108 : 0x0p+0 : xfail:ibm128-libgcc inexact-ok
+tanpi -0x3fffffffffffffffffffffffffff.ap0 xfail-rounding:ibm128-libgcc
+= tanpi downward binary32 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary32 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary32 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi upward binary32 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi downward binary64 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary32 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary32 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary64 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi upward binary64 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi downward intel96 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary64 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero intel96 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi upward intel96 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi downward m68k96 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero intel96 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi upward m68k96 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi downward ibm128 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi upward ibm128 -0x3.fffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi downward binary32 -0x4p+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 -0x3.fffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary32 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary32 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary32 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi upward binary32 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi downward binary64 -0x4p+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary32 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary32 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary64 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi upward binary64 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi downward intel96 -0x4p+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary64 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero intel96 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi upward intel96 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi downward m68k96 -0x4p+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero intel96 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi upward m68k96 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0x4p+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi downward ibm128 -0x4p+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi upward ibm128 -0x4p+108 : -0x0p+0 : inexact-ok
-= tanpi downward binary64 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 -0x4p+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary64 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary64 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary64 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi upward binary64 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi downward intel96 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary64 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary64 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero intel96 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi upward intel96 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi downward m68k96 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero intel96 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi upward m68k96 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi downward ibm128 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi upward ibm128 -0x3.ffffffffffffep+108 : -0x0p+0 : inexact-ok
-= tanpi downward intel96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 -0x3.ffffffffffffep+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward intel96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest intel96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero intel96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi upward intel96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi downward m68k96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero intel96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward intel96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward m68k96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest m68k96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero m68k96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi upward m68k96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero m68k96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward m68k96 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi downward ibm128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi upward ibm128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : inexact-ok
-= tanpi downward binary128 -0x3.fffffffffffffffffffffffffffap+108 : 0x2.6a09e667f3bcc908b2fb1366ea94p+0 : inexact-ok
+= tanpi towardzero ibm128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 -0x3.fffffffffffffffcp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0x3.fffffffffffffffffffffffffffap+108 : 0x2.6a09e667f3bcc908b2fb1366ea94p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0x3.fffffffffffffffffffffffffffap+108 : 0x2.6a09e667f3bcc908b2fb1366ea96p+0 : inexact-ok
-= tanpi towardzero binary128 -0x3.fffffffffffffffffffffffffffap+108 : 0x2.6a09e667f3bcc908b2fb1366ea94p+0 : inexact-ok
-= tanpi upward binary128 -0x3.fffffffffffffffffffffffffffap+108 : 0x2.6a09e667f3bcc908b2fb1366ea96p+0 : inexact-ok
-= tanpi downward binary128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0x3.fffffffffffffffffffffffffffap+108 : 0x2.6a09e667f3bcc908b2fb1366ea94p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0x3.fffffffffffffffffffffffffffap+108 : 0x2.6a09e667f3bcc908b2fb1366ea96p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward binary128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest binary128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero binary128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : inexact-ok
-= tanpi upward binary128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : inexact-ok
-= tanpi downward ibm128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero binary128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward binary128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi downward ibm128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
 = tanpi tonearest ibm128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : inexact-ok
-= tanpi towardzero ibm128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : inexact-ok
-= tanpi upward ibm128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : inexact-ok
+= tanpi towardzero ibm128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
+= tanpi upward ibm128 -0x3.ffffffffffffffffffffffffffp+108 : -0x0p+0 : xfail:ibm128-libgcc inexact-ok
diff --git a/math/libm-test-tanpi.inc b/math/libm-test-tanpi.inc
index 3e3a126c96..3fcd48d65a 100644
--- a/math/libm-test-tanpi.inc
+++ b/math/libm-test-tanpi.inc
@@ -50,15 +50,15 @@ static const struct test_f_f_data tanpi_test_data[] =
 #endif
 #if MANT_DIG >= 64
     TEST_f_f (tanpi, 0xffffffffffffffffp-1, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
-    TEST_f_f (tanpi, 0xfffffffffffffffdp-1, plus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
+    TEST_f_f (tanpi, 0xfffffffffffffffdp-1, plus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE|XFAIL_ROUNDING_IBM128_LIBGCC),
     TEST_f_f (tanpi, -0xffffffffffffffffp-1, plus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
-    TEST_f_f (tanpi, -0xfffffffffffffffdp-1, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
+    TEST_f_f (tanpi, -0xfffffffffffffffdp-1, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE|XFAIL_ROUNDING_IBM128_LIBGCC),
 #endif
 #if MANT_DIG >= 106
     TEST_f_f (tanpi, 0x3ffffffffffffffffffffffffffp-1, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
-    TEST_f_f (tanpi, 0x3fffffffffffffffffffffffffdp-1, plus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
+    TEST_f_f (tanpi, 0x3fffffffffffffffffffffffffdp-1, plus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE|XFAIL_ROUNDING_IBM128_LIBGCC),
     TEST_f_f (tanpi, -0x3ffffffffffffffffffffffffffp-1, plus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
-    TEST_f_f (tanpi, -0x3fffffffffffffffffffffffffdp-1, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
+    TEST_f_f (tanpi, -0x3fffffffffffffffffffffffffdp-1, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE|XFAIL_ROUNDING_IBM128_LIBGCC),
 #endif
 #if MANT_DIG >= 113
     TEST_f_f (tanpi, 0x1ffffffffffffffffffffffffffffp-1, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE),
