Blame sysdeps/s390/fpu/math-barriers.h

Packit Service d8800b
/* Control when floating-point expressions are evaluated.  s390 version.
Packit Service d8800b
   Copyright (C) 2019 Free Software Foundation, Inc.
Packit Service d8800b
   This file is part of the GNU C Library.
Packit Service d8800b
Packit Service d8800b
   The GNU C Library is free software; you can redistribute it and/or
Packit Service d8800b
   modify it under the terms of the GNU Lesser General Public
Packit Service d8800b
   License as published by the Free Software Foundation; either
Packit Service d8800b
   version 2.1 of the License, or (at your option) any later version.
Packit Service d8800b
Packit Service d8800b
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service d8800b
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service d8800b
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service d8800b
   Lesser General Public License for more details.
Packit Service d8800b
Packit Service d8800b
   You should have received a copy of the GNU Lesser General Public
Packit Service d8800b
   License along with the GNU C Library; if not, see
Packit Service d8800b
   <https://www.gnu.org/licenses/>.  */
Packit Service d8800b
Packit Service d8800b
#ifndef S390_MATH_BARRIERS_H
Packit Service d8800b
#define S390_MATH_BARRIERS_H 1
Packit Service d8800b
Packit Service d8800b
#ifdef HAVE_S390_VX_GCC_SUPPORT
Packit Service d8800b
# define ASM_CONSTRAINT_VR "v"
Packit Service d8800b
#else
Packit Service d8800b
# define ASM_CONSTRAINT_VR
Packit Service d8800b
#endif
Packit Service d8800b
Packit Service d8800b
#define math_opt_barrier(x)						\
Packit Service d8800b
  ({ __typeof (x) __x = (x);						\
Packit Service d8800b
    if (__builtin_types_compatible_p (__typeof (x), _Float128))		\
Packit Service d8800b
      __asm__ ("# math_opt_barrier_f128 %0" : "+fm" (__x));		\
Packit Service d8800b
    else								\
Packit Service d8800b
      __asm__ ("# math_opt_barrier %0"					\
Packit Service d8800b
	       : "+f" ASM_CONSTRAINT_VR "m" (__x));			\
Packit Service d8800b
    __x; })
Packit Service d8800b
#define math_force_eval(x)						\
Packit Service d8800b
  ({ __typeof (x) __x = (x);						\
Packit Service d8800b
    if (__builtin_types_compatible_p (__typeof (x), _Float128))		\
Packit Service d8800b
      __asm__ __volatile__ ("# math_force_eval_f128 %0"			\
Packit Service d8800b
			    : : "fm" (__x));				\
Packit Service d8800b
    else								\
Packit Service d8800b
      __asm__ __volatile__ ("# math_force_eval %0"			\
Packit Service d8800b
			    : : "f" ASM_CONSTRAINT_VR "m" (__x));	\
Packit Service d8800b
  })
Packit Service d8800b
Packit Service d8800b
#endif