aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr121062-2.c
blob: 723d68a4003107a4a2ea26e6b436a61956f5fc25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-Og -fno-dce -mtune=generic" } */

typedef int __attribute__((__vector_size__ (4))) S;
extern void bar (S);

void
foo ()
{
  bar ((S){-1});
}

/* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$-1, \\(%esp\\)" 1 { target ia32 } } } */
/* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$-1, %edi" 1 { target { ! ia32 } } } } */