These are available in the s390x baseline isa -march=z900.
@@ -0,0 +1,7 @@
+#include <math.h>
+
+double fma(double x, double y, double z)
+{
+ __asm__ ("madbr %0, %1, %2" : "+f"(z) : "f"(x), "f"(y));
+ return z;
+}
+float fmaf(float x, float y, float z)
+ __asm__ ("maebr %0, %1, %2" : "+f"(z) : "f"(x), "f"(y));