blob: 0c59c62dacf0fb9df926e636bfc85c01f73117d6 [file] [log] [blame]
/* Verify pattern initialization for integer and pointer type automatic variables. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=pattern -fdump-rtl-expand -march=x86-64 -mtune=generic -msse" } */
#ifndef __cplusplus
# define bool _Bool
#endif
enum E {
N1 = 0,
N2,
N3
};
extern void bar (char, short, int, enum E, long, long long, int *, bool);
void foo()
{
char temp1;
short temp2;
int temp3;
enum E temp4;
long temp5;
long long temp6;
int *temp7;
bool temp8;
bar (temp1, temp2, temp3, temp4, temp5, temp6, temp7, temp8);
return;
}
/* { dg-final { scan-rtl-dump-times "0xfffffffffffffffe" 1 "expand" } } */
/* { dg-final { scan-rtl-dump-times "0xfffffffffffffefe" 1 "expand" } } */
/* { dg-final { scan-rtl-dump-times "0xfffffffffefefefe" 2 "expand" { target lp64 } } } */
/* { dg-final { scan-rtl-dump-times "0xfefefefefefefefe" 3 "expand" { target lp64 } } } */
/* { dg-final { scan-rtl-dump-times "0xfffffffffefefefe" 4 "expand" { target { ! lp64 } } } } */
/* { dg-final { scan-rtl-dump-times "0xfefefefefefefefe" 1 "expand" { target { ! lp64 } } } } */