blob: c7e1542873bf89fb4fbdaaff418e1ede12d8c27e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/* { dg-do compile } */
/* { dg-options "-O2 -mtune=generic" } */
char a[5];
int
func1 (void)
{
__builtin_memset (a,-1,sizeof (a));
return 0;
}
int a2[5];
int
func2 (void)
{
__builtin_memset (a2,-1,sizeof (a2));
return 0;
}
char a3[5];
int
func3 (void)
{
__builtin_memset (a3,0x8fffffff,sizeof (a3));
return 0;
}
char a4[5];
int
func4 (void)
{
__builtin_memset (a4,0x8fffff00,sizeof (a4));
return 0;
}
int a5[5];
int
func5 (void)
{
__builtin_memset (a5,0x8fffffff,sizeof (a5));
return 0;
}
/* { dg-final { scan-assembler-not "call\[\\t \]*_?memset" } } */
|