PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr79683.c
blob9e28d85fc89f2cc82ac413ecb591629cf189cdf2
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -msse2 -fvect-cost-model=unlimited" } */
4 struct s {
5 __INT64_TYPE__ a;
6 __INT64_TYPE__ b;
7 };
8 void test(struct s __seg_gs *x) {
9 x->a += 1;
10 x->b -= 1;
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 } } */