re PR target/42113 (Internal Compiler error with -O3, breaking commit known)
PR target/42113 * config/alpha/alpha.md (*cmp_sadd_si): Change mode of scratch register to SImode. (*cmp_sadd_sidi): Ditto. (*cmp_ssub_si): Ditto. (*cmp_ssub_sidi): Ditto. testsuite/ChangeLog: PR target/42113 * gcc.target/alpha/pr42113.c: New test. From-SVN: r154464
This commit is contained in:
parent
f185dd245f
commit
0f9fc698ad
|
@ -1,3 +1,12 @@
|
|||
2009-11-23 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
PR target/42113
|
||||
* config/alpha/alpha.md (*cmp_sadd_si): Change mode
|
||||
of scratch register to SImode.
|
||||
(*cmp_sadd_sidi): Ditto.
|
||||
(*cmp_ssub_si): Ditto.
|
||||
(*cmp_ssub_sidi): Ditto.
|
||||
|
||||
2009-11-18 Matthias Klose <doko@ubuntu.com>
|
||||
|
||||
* config.gcc: Update ARM --with-fpu option list.
|
||||
|
|
|
@ -4350,7 +4350,7 @@
|
|||
(match_dup 4)))]
|
||||
{
|
||||
if (can_create_pseudo_p ())
|
||||
operands[5] = gen_reg_rtx (DImode);
|
||||
operands[5] = gen_reg_rtx (SImode);
|
||||
else if (reg_overlap_mentioned_p (operands[5], operands[4]))
|
||||
operands[5] = operands[0];
|
||||
})
|
||||
|
@ -4376,9 +4376,9 @@
|
|||
(match_dup 4))))]
|
||||
{
|
||||
if (can_create_pseudo_p ())
|
||||
operands[5] = gen_reg_rtx (DImode);
|
||||
operands[5] = gen_reg_rtx (SImode);
|
||||
else if (reg_overlap_mentioned_p (operands[5], operands[4]))
|
||||
operands[5] = operands[0];
|
||||
operands[5] = gen_lowpart (SImode, operands[0]);
|
||||
})
|
||||
|
||||
(define_insn_and_split "*cmp_ssub_di"
|
||||
|
@ -4426,7 +4426,7 @@
|
|||
(match_dup 4)))]
|
||||
{
|
||||
if (can_create_pseudo_p ())
|
||||
operands[5] = gen_reg_rtx (DImode);
|
||||
operands[5] = gen_reg_rtx (SImode);
|
||||
else if (reg_overlap_mentioned_p (operands[5], operands[4]))
|
||||
operands[5] = operands[0];
|
||||
})
|
||||
|
@ -4452,9 +4452,9 @@
|
|||
(match_dup 4))))]
|
||||
{
|
||||
if (can_create_pseudo_p ())
|
||||
operands[5] = gen_reg_rtx (DImode);
|
||||
operands[5] = gen_reg_rtx (SImode);
|
||||
else if (reg_overlap_mentioned_p (operands[5], operands[4]))
|
||||
operands[5] = operands[0];
|
||||
operands[5] = gen_lowpart (SImode, operands[0]);
|
||||
})
|
||||
|
||||
;; Here are the CALL and unconditional branch insns. Calls on NT and OSF
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2009-11-23 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
PR target/42113
|
||||
* gcc.target/alpha/pr42113.c: New test.
|
||||
|
||||
2009-11-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* c-c++-common/pr41935.c: Removed.
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2" } */
|
||||
|
||||
int foo (int a, int b)
|
||||
{
|
||||
int bar = a * sizeof (int);
|
||||
|
||||
if (b)
|
||||
bar += sizeof (int);
|
||||
|
||||
return bar;
|
||||
}
|
Loading…
Reference in New Issue