diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/lea.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/lea.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/lea.c b/gcc/testsuite/gcc.target/i386/lea.c new file mode 100644 index 00000000000..61d9955f3e2 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/lea.c @@ -0,0 +1,14 @@ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ +/* { dg-options "-O2 -march=i686" } */ +/* { dg-final { scan-assembler "leal" } } */ +typedef struct { + char **visbuf; + char **allbuf; +} TScreen; + +void +VTallocbuf(TScreen *screen, unsigned long savelines) +{ + screen->visbuf = &screen->allbuf[savelines]; +} |