Fix fuse-caller-save test-cases
2014-07-21 Tom de Vries <tom@codesourcery.com> PR target/61827 * gcc.target/i386/fuse-caller-save-xmm.c: Allow LC0 without dot prefix for darwin in scan-assembler-times check. * gcc.target/i386/fuse-caller-save.c: Remove cfi-related scan-assembler-not checks. Add checks for insns. (main): Remove. * gcc.target/i386/fuse-caller-save-rec.c: Remove cfi-related scan-assembler-not checks. Copy checks from i386/fuse-caller-save.c. (main): Remove. From-SVN: r212890
This commit is contained in:
parent
72c47e0d34
commit
ad6e8e315f
|
@ -1,3 +1,15 @@
|
||||||
|
2014-07-21 Tom de Vries <tom@codesourcery.com>
|
||||||
|
|
||||||
|
PR target/61827
|
||||||
|
* gcc.target/i386/fuse-caller-save-xmm.c: Allow LC0 without dot prefix
|
||||||
|
for darwin in scan-assembler-times check.
|
||||||
|
* gcc.target/i386/fuse-caller-save.c: Remove cfi-related
|
||||||
|
scan-assembler-not checks. Add checks for insns.
|
||||||
|
(main): Remove.
|
||||||
|
* gcc.target/i386/fuse-caller-save-rec.c: Remove cfi-related
|
||||||
|
scan-assembler-not checks. Copy checks from i386/fuse-caller-save.c.
|
||||||
|
(main): Remove.
|
||||||
|
|
||||||
2014-07-21 Tom de Vries <tom@codesourcery.com>
|
2014-07-21 Tom de Vries <tom@codesourcery.com>
|
||||||
|
|
||||||
PR target/61827
|
PR target/61827
|
||||||
|
|
|
@ -18,14 +18,12 @@ foo (int y)
|
||||||
return y + bar (y);
|
return y + bar (y);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
/* Check that no registers are saved/restored. */
|
||||||
main (void)
|
/* { dg-final { scan-assembler-not "push" } } */
|
||||||
{
|
/* { dg-final { scan-assembler-not "pop" } } */
|
||||||
return !(foo (5) == 13);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Verify that no registers where saved on stack. */
|
/* Check that addition uses dx. */
|
||||||
/* { dg-final { scan-assembler-not "\.cfi_offset" } } */
|
/* { dg-final { scan-assembler-times "addl\t%\[re\]?dx, %\[re\]?ax" 1 } } */
|
||||||
|
|
||||||
/* Verify that bar is self-recursive. */
|
/* Verify that bar is self-recursive. */
|
||||||
/* { dg-final { scan-assembler-times "call\tbar" 2 } } */
|
/* { dg-final { scan-assembler-times "call\tbar" 2 } } */
|
||||||
|
|
|
@ -17,7 +17,7 @@ foo (v2df y)
|
||||||
|
|
||||||
/* Check presence of all insns on xmm registers. These checks are expected to
|
/* Check presence of all insns on xmm registers. These checks are expected to
|
||||||
pass with both -fuse-caller-save and -fno-use-caller-save. */
|
pass with both -fuse-caller-save and -fno-use-caller-save. */
|
||||||
/* { dg-final { scan-assembler-times "addpd\t\\.LC0.*, %xmm0" 1 } } */
|
/* { dg-final { scan-assembler-times "addpd\t\\.?LC0.*, %xmm0" 1 } } */
|
||||||
/* { dg-final { scan-assembler-times "addpd\t%xmm1, %xmm0" 1 } } */
|
/* { dg-final { scan-assembler-times "addpd\t%xmm1, %xmm0" 1 } } */
|
||||||
/* { dg-final { scan-assembler-times "movapd\t%xmm0, %xmm1" 1 } } */
|
/* { dg-final { scan-assembler-times "movapd\t%xmm0, %xmm1" 1 } } */
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,9 @@ foo (int y)
|
||||||
return y + bar (y);
|
return y + bar (y);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
/* Check that no registers are saved/restored. */
|
||||||
main (void)
|
/* { dg-final { scan-assembler-not "push" } } */
|
||||||
{
|
/* { dg-final { scan-assembler-not "pop" } } */
|
||||||
return !(foo (5) == 13);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* { dg-final { scan-assembler-not "\.cfi_def_cfa_offset" } } */
|
|
||||||
/* { dg-final { scan-assembler-not "\.cfi_offset" } } */
|
|
||||||
|
|
||||||
|
/* Check that addition uses dx. */
|
||||||
|
/* { dg-final { scan-assembler-times "addl\t%\[re\]?dx, %\[re\]?ax" 1 } } */
|
||||||
|
|
Loading…
Reference in New Issue