OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [testimm-1.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* PR target/49411 */
2
/* { dg-do compile } */
3
/* { dg-options "-O0 -mf16c -maes -mpclmul" } */
4
 
5
#include <x86intrin.h>
6
 
7
__m128i i1, i2, i3, i4;
8
__m128 a1, a2, a3, a4;
9
__m128d d1, d2, d3, d4;
10
__m256i l1, l2, l3, l4;
11
__m256 b1, b2, b3, b4;
12
__m256d e1, e2, e3, e4;
13
__m64 m1, m2, m3, m4;
14
int k1, k2, k3, k4;
15
float f1, f2, f3, f4;
16
 
17
void
18
test8bit (void)
19
{
20
  i1 = _mm_cmpistrm (i2, i3, 256);        /* { dg-error "the third argument must be an 8-bit immediate" } */
21
  k1 = _mm_cmpistri (i2, i3, 256);        /* { dg-error "the third argument must be an 8-bit immediate" } */
22
  k1 = _mm_cmpistra (i2, i3, 256);        /* { dg-error "the third argument must be an 8-bit immediate" } */
23
  k1 = _mm_cmpistrc (i2, i3, 256);        /* { dg-error "the third argument must be an 8-bit immediate" } */
24
  k1 = _mm_cmpistro (i2, i3, 256);        /* { dg-error "the third argument must be an 8-bit immediate" } */
25
  k1 = _mm_cmpistrs (i2, i3, 256);        /* { dg-error "the third argument must be an 8-bit immediate" } */
26
  k1 = _mm_cmpistrz (i2, i3, 256);        /* { dg-error "the third argument must be an 8-bit immediate" } */
27
  i1 = _mm_cmpestrm (i2, k2, i3, k3, 256);/* { dg-error "the fifth argument must be an 8-bit immediate" } */
28
  k1 = _mm_cmpestri (i2, k2, i3, k3, 256);/* { dg-error "the fifth argument must be an 8-bit immediate" } */
29
  k1 = _mm_cmpestra (i2, k2, i3, k3, 256);/* { dg-error "the fifth argument must be an 8-bit immediate" } */
30
  k1 = _mm_cmpestrc (i2, k2, i3, k3, 256);/* { dg-error "the fifth argument must be an 8-bit immediate" } */
31
  k1 = _mm_cmpestro (i2, k2, i3, k3, 256);/* { dg-error "the fifth argument must be an 8-bit immediate" } */
32
  k1 = _mm_cmpestrs (i2, k2, i3, k3, 256);/* { dg-error "the fifth argument must be an 8-bit immediate" } */
33
  k1 = _mm_cmpestrz (i2, k2, i3, k3, 256);/* { dg-error "the fifth argument must be an 8-bit immediate" } */
34
  b1 = _mm256_blend_ps (b2, b3, 256);     /* { dg-error "the last argument must be an 8-bit immediate" } */
35
  k1 = _cvtss_sh (f1, 256);               /* { dg-error "the last argument must be an 8-bit immediate" } */
36
  i1 = _mm256_cvtps_ph (b2, 256);         /* { dg-error "the last argument must be an 8-bit immediate" } */
37
  b1 = _mm256_dp_ps (b2, b3, 256);        /* { dg-error "the last argument must be an 8-bit immediate" } */
38
  e1 = _mm256_permute2f128_pd (e2, e3, 256);/* { dg-error "the last argument must be an 8-bit immediate" } */
39
  b1 = _mm256_permute2f128_ps (b2, b3, 256);/* { dg-error "the last argument must be an 8-bit immediate" } */
40
  l1 = _mm256_permute2f128_si256 (l2, l3, 256);/* { dg-error "the last argument must be an 8-bit immediate" } */
41
  b1 = _mm256_permute_ps (b2, 256);       /* { dg-error "the last argument must be an 8-bit immediate" } */
42
  i1 = _mm_aeskeygenassist_si128 (i2, 256);/* { dg-error "the last argument must be an 8-bit immediate" } */
43
  i1 = _mm_blend_epi16 (i2, i3, 256);     /* { dg-error "the last argument must be an 8-bit immediate" } */
44
  i1 = _mm_clmulepi64_si128 (i2, i3, 256);/* { dg-error "the last argument must be an 8-bit immediate" } */
45
  i1 = _mm_cvtps_ph (a1, 256);            /* { dg-error "the last argument must be an 8-bit immediate" } */
46
  d1 = _mm_dp_pd (d2, d3, 256);           /* { dg-error "the last argument must be an 8-bit immediate" } */
47
  a1 = _mm_dp_ps (a2, a3, 256);           /* { dg-error "the last argument must be an 8-bit immediate" } */
48
  a1 = _mm_insert_ps (a2, a3, 256);       /* { dg-error "the last argument must be an 8-bit immediate" } */
49
  i1 = _mm_mpsadbw_epu8 (i2, i3, 256);    /* { dg-error "the last argument must be an 8-bit immediate" } */
50
  a1 = _mm_permute_ps (a2, 256);          /* { dg-error "the last argument must be an 8-bit immediate" } */
51
  i1 = _mm_slli_si128 (i2, 256);          /* { dg-error "the last argument must be an 8-bit immediate" } */
52
  i1 = _mm_srli_si128 (i2, 256);          /* { dg-error "the last argument must be an 8-bit immediate" } */
53
}
54
 
55
void
56
test5bit (void)
57
{
58
  d1 = _mm_cmp_sd (d2, d3, 32);           /* { dg-error "the last argument must be a 5-bit immediate" } */
59
  a1 = _mm_cmp_ss (a2, a3, 32);           /* { dg-error "the last argument must be a 5-bit immediate" } */
60
  d1 = _mm_cmp_pd (d2, d3, 32);           /* { dg-error "the last argument must be a 5-bit immediate" } */
61
  a1 = _mm_cmp_ps (a2, a3, 32);           /* { dg-error "the last argument must be a 5-bit immediate" } */
62
  e1 = _mm256_cmp_pd (e2, e3, 32);        /* { dg-error "the last argument must be a 5-bit immediate" } */
63
  b1 = _mm256_cmp_ps (b2, b3, 32);        /* { dg-error "the last argument must be a 5-bit immediate" } */
64
}
65
 
66
void
67
test4bit (void)
68
{
69
  d1 = _mm_round_pd (d2, 16);             /* { dg-error "the last argument must be a 4-bit immediate" } */
70
  d1 = _mm_round_sd (d2, d3, 16);         /* { dg-error "the last argument must be a 4-bit immediate" } */
71
  a1 = _mm_round_ps (a2, 16);             /* { dg-error "the last argument must be a 4-bit immediate" } */
72
  a1 = _mm_round_ss (a2, a2, 16);         /* { dg-error "the last argument must be a 4-bit immediate" } */
73
  a1 = _mm_blend_ps (a2, a3, 16);         /* { dg-error "the last argument must be a 4-bit immediate" } */
74
  e1 = _mm256_blend_pd (e2, e3, 16);      /* { dg-error "the last argument must be a 4-bit immediate" } */
75
  e1 = _mm256_round_pd (e2, 16);          /* { dg-error "the last argument must be a 4-bit immediate" } */
76
  b1 = _mm256_round_ps (b2, 16);          /* { dg-error "the last argument must be a 4-bit immediate" } */
77
}
78
 
79
void
80
test2bit (void)
81
{
82
  d1 = _mm_blend_pd (d2, d3, 4);          /* { dg-error "the last argument must be a 2-bit immediate" } */
83
}
84
 
85
void
86
test1bit (void)
87
{
88
  d1 = _mm256_extractf128_pd (e2, 2);     /* { dg-error "the last argument must be a 1-bit immediate" } */
89
  a1 = _mm256_extractf128_ps (b2, 2);     /* { dg-error "the last argument must be a 1-bit immediate" } */
90
  i1 = _mm256_extractf128_si256 (l2, 2);  /* { dg-error "the last argument must be a 1-bit immediate" } */
91
  e1 = _mm256_insertf128_pd (e2, d1, 2);  /* { dg-error "the last argument must be a 1-bit immediate" } */
92
  b1 = _mm256_insertf128_ps (b2, a1, 2);  /* { dg-error "the last argument must be a 1-bit immediate" } */
93
  l1 = _mm256_insertf128_si256 (l2, i1, 2);/* { dg-error "the last argument must be a 1-bit immediate" } */
94
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.