re PR middle-end/28403 (Missed argument pop after doubleword shift)
gcc/ PR middle-end/28403 * optabs.c (expand_doubleword_shift): Wrap the call to do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP. gcc/testsuite/ PR middle-end/28403 * gcc.c-torture/execute/pr28403.c: New test. From-SVN: r115525
This commit is contained in:
parent
f8bdb931a9
commit
2763a67eff
4 changed files with 36 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-07-17 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
PR middle-end/28403
|
||||
* optabs.c (expand_doubleword_shift): Wrap the call to
|
||||
do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
|
||||
|
||||
2006-07-17 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
PR middle-end/28402
|
||||
|
|
|
@ -959,8 +959,10 @@ expand_doubleword_shift (enum machine_mode op1_mode, optab binoptab,
|
|||
subword_label = gen_label_rtx ();
|
||||
done_label = gen_label_rtx ();
|
||||
|
||||
NO_DEFER_POP;
|
||||
do_compare_rtx_and_jump (cmp1, cmp2, cmp_code, false, op1_mode,
|
||||
0, 0, subword_label);
|
||||
OK_DEFER_POP;
|
||||
|
||||
if (!expand_superword_shift (binoptab, outof_input, superword_op1,
|
||||
outof_target, into_target,
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2006-07-17 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
PR middle-end/28403
|
||||
* gcc.c-torture/execute/pr28403.c: New test.
|
||||
|
||||
2006-07-17 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
PR middle-end/28402
|
||||
|
|
23
gcc/testsuite/gcc.c-torture/execute/pr28403.c
Normal file
23
gcc/testsuite/gcc.c-torture/execute/pr28403.c
Normal file
|
@ -0,0 +1,23 @@
|
|||
typedef unsigned long long ull;
|
||||
int global;
|
||||
|
||||
int __attribute__((noinline))
|
||||
foo (int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8)
|
||||
{
|
||||
global = x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8;
|
||||
}
|
||||
|
||||
ull __attribute__((noinline))
|
||||
bar (ull x)
|
||||
{
|
||||
foo (1, 2, 1, 3, 1, 4, 1, 5);
|
||||
return x >> global;
|
||||
}
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
if (bar (0x123456789abcdefULL) != (0x123456789abcdefULL >> 18))
|
||||
abort ();
|
||||
exit (0);
|
||||
}
|
Loading…
Add table
Reference in a new issue