1 /* { dg-do compile } */
2 /* { dg-options "-O3 -msse2 -mno-avx" } */
3 
fill(unsigned char __seg_gs * arr,unsigned char c,long n)4 void fill(unsigned char __seg_gs *arr, unsigned char c, long n)
5 {
6   for (long i = 0; i < n; ++i)
7     arr[i] = c;
8 }
9 
10 /* { dg-final { scan-assembler "mov\[au\]p.\[ \t\]\[^,\]+, %gs:" } } */
11