2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr46647.c
blobc7e1542873bf89fb4fbdaaff418e1ede12d8c27e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mtune=generic" } */
4 char a[5];
5 int
6 func1 (void)
8 __builtin_memset (a,-1,sizeof (a));
9 return 0;
12 int a2[5];
13 int
14 func2 (void)
16 __builtin_memset (a2,-1,sizeof (a2));
17 return 0;
20 char a3[5];
21 int
22 func3 (void)
24 __builtin_memset (a3,0x8fffffff,sizeof (a3));
25 return 0;
28 char a4[5];
29 int
30 func4 (void)
32 __builtin_memset (a4,0x8fffff00,sizeof (a4));
33 return 0;
36 int a5[5];
37 int
38 func5 (void)
40 __builtin_memset (a5,0x8fffffff,sizeof (a5));
41 return 0;
44 /* { dg-final { scan-assembler-not "call\[\\t \]*_?memset" } } */