blob: 0dfdc3ca5f7348268be0a9e7c0307a9c477dad92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* Test that the compiler properly optimizes vector SI->DI conversions. This
was a bug in the initial SSE5 code. */
/* { dg-do compile { target x86_64-*-*} } */
/* { dg-options "-O2 -msse5 -ftree-vectorize" } */
/* This is PR c/33524 */
typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__));
#define SIZE 10240
union {
signed int si[SIZE];
signed long sl[SIZE];
__m128i align;
} a, b;
void conv_sign_int_sign_long (void)
{
int i;
for (i = 0; i < SIZE; i++)
a.sl[i] = b.si[i];
}
/* { dg-final { scan-assembler "pperm" } } */
|