diff options
author | Dan Albert <danalbert@google.com> | 2015-06-17 11:09:54 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-06-17 14:15:22 -0700 |
commit | f378ebf14df0952eae870c9865bab8326aa8f137 (patch) | |
tree | 31794503eb2a8c64ea5f313b93100f1163afcffb /gcc-4.7/gcc/testsuite/gcc.target/i386/m256-check.h | |
parent | 2c58169824949d3a597d9fa81931e001ef9b1bd0 (diff) | |
download | toolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.tar.gz toolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.tar.bz2 toolchain_gcc-f378ebf14df0952eae870c9865bab8326aa8f137.zip |
Delete old versions of GCC.
Change-Id: I710f125d905290e1024cbd67f48299861790c66c
Diffstat (limited to 'gcc-4.7/gcc/testsuite/gcc.target/i386/m256-check.h')
-rw-r--r-- | gcc-4.7/gcc/testsuite/gcc.target/i386/m256-check.h | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/gcc-4.7/gcc/testsuite/gcc.target/i386/m256-check.h b/gcc-4.7/gcc/testsuite/gcc.target/i386/m256-check.h deleted file mode 100644 index e1843550e..000000000 --- a/gcc-4.7/gcc/testsuite/gcc.target/i386/m256-check.h +++ /dev/null @@ -1,73 +0,0 @@ -#include <immintrin.h> -#include "m128-check.h" - -#ifndef max -#define max(a, b) (((a) > (b)) ? (a):(b)) -#endif -#ifndef min -#define min(a, b) (((a) < (b)) ? (a):(b)) -#endif - -typedef union -{ - __m256i x; - char a[32]; -} union256i_b; - -typedef union -{ - __m256i x; - short a[16]; -} union256i_w; - -typedef union -{ - __m256i x; - int a[8]; -} union256i_d; - -typedef union -{ - __m256i x; - long long a[4]; -} union256i_q; - -typedef union -{ - __m256 x; - float a[8]; -} union256; - -typedef union -{ - __m256d x; - double a[4]; -} union256d; - -CHECK_EXP (union256i_b, char, "%d") -CHECK_EXP (union256i_w, short, "%d") -CHECK_EXP (union256i_d, int, "0x%x") -CHECK_EXP (union256i_q, long long, "0x%llx") -CHECK_EXP (union256, float, "%f") -CHECK_EXP (union256d, double, "%f") - -#define CHECK_FP_EXP(UINON_TYPE, VALUE_TYPE, ESP, FMT) \ -static int \ -__attribute__((noinline, unused)) \ -check_fp_##UINON_TYPE (UINON_TYPE u, const VALUE_TYPE *v) \ -{ \ - int i; \ - int err = 0; \ - \ - for (i = 0; i < ARRAY_SIZE (u.a); i++) \ - if (u.a[i] > (v[i] + (ESP)) || u.a[i] < (v[i] - (ESP))) \ - { \ - err++; \ - PRINTF ("%i: " FMT " != " FMT "\n", \ - i, v[i], u.a[i]); \ - } \ - return err; \ -} - -CHECK_FP_EXP (union256, float, ESP_FLOAT, "%f") -CHECK_FP_EXP (union256d, double, ESP_DOUBLE, "%f") |