aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr79683.c
blob: 9e28d85fc89f2cc82ac413ecb591629cf189cdf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O3 -msse2 -fvect-cost-model=unlimited" } */

struct s {
    __INT64_TYPE__ a;
    __INT64_TYPE__ b;
};
void test(struct s __seg_gs *x) {
    x->a += 1;
    x->b -= 1;
}

/* We get the function vectorized, verify the load and store are
   address-space qualified.  */
/* { dg-final { scan-assembler-times "padd" 1 } } */
/* { dg-final { scan-assembler-times "%gs" 2 } } */