1 /* { dg-do compile } */
2 /* { dg-options "-O3 -msse2 -fvect-cost-model=unlimited" } */
3 
4 struct s {
5     __INT64_TYPE__ a;
6     __INT64_TYPE__ b;
7 };
test(struct s __seg_gs * x)8 void test(struct s __seg_gs *x) {
9     x->a += 1;
10     x->b -= 1;
11 }
12 
13 /* We get the function vectorized, verify the load and store are
14    address-space qualified.  */
15 /* { dg-final { scan-assembler-times "padd" 1 } } */
16 /* { dg-final { scan-assembler-times "%gs" 2 } } */
17