Spotted while fixing the rs6000 aliasing issue.
2021-01-22 Jakub Jelinek <jakub@redhat.com>
* gcc.target/i386/m128-check.h (CHECK_EXP, CHECK_FP_EXP): Fix a typo,
UINON_TYPE to UNION_TYPE.
* gcc.target/i386/m256-check.h (CHECK_FP_EXP): Likewise.
* gcc.target/i386/m512-check.h (CHECK_ROUGH_EXP): Likewise.
#define PRINTF(...)
#endif
-#define CHECK_EXP(UINON_TYPE, VALUE_TYPE, FMT) \
+#define CHECK_EXP(UNION_TYPE, VALUE_TYPE, FMT) \
static int \
__attribute__((optimize ("no-strict-aliasing"))) \
__attribute__((noinline, unused)) \
-check_##UINON_TYPE (UINON_TYPE u, const VALUE_TYPE *v) \
+check_##UNION_TYPE (UNION_TYPE u, const VALUE_TYPE *v) \
{ \
int i; \
int err = 0; \
};
#endif
-#define CHECK_FP_EXP(UINON_TYPE, VALUE_TYPE, ESP, FMT) \
+#define CHECK_FP_EXP(UNION_TYPE, VALUE_TYPE, ESP, FMT) \
static int \
__attribute__((noinline, unused)) \
-check_fp_##UINON_TYPE (UINON_TYPE u, const VALUE_TYPE *v) \
+check_fp_##UNION_TYPE (UNION_TYPE u, const VALUE_TYPE *v) \
{ \
int i; \
int err = 0; \
CHECK_EXP (union256i_ud, unsigned int, "0x%x")
CHECK_EXP (union256i_uq, unsigned long long, "0x%llx")
-#define CHECK_FP_EXP(UINON_TYPE, VALUE_TYPE, ESP, FMT) \
+#define CHECK_FP_EXP(UNION_TYPE, VALUE_TYPE, ESP, FMT) \
static int \
__attribute__((noinline, unused)) \
-check_fp_##UINON_TYPE (UINON_TYPE u, const VALUE_TYPE *v) \
+check_fp_##UNION_TYPE (UNION_TYPE u, const VALUE_TYPE *v) \
{ \
int i; \
int err = 0; \
CHECK_FP_EXP (union512, float, ESP_FLOAT, "%f")
CHECK_FP_EXP (union512d, double, ESP_DOUBLE, "%f")
-#define CHECK_ROUGH_EXP(UINON_TYPE, VALUE_TYPE, FMT) \
+#define CHECK_ROUGH_EXP(UNION_TYPE, VALUE_TYPE, FMT) \
static int \
__attribute__((noinline, unused)) \
-check_rough_##UINON_TYPE (UINON_TYPE u, const VALUE_TYPE *v, \
+check_rough_##UNION_TYPE (UNION_TYPE u, const VALUE_TYPE *v, \
VALUE_TYPE eps) \
{ \
int i; \