public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/39726] New: [cond-optab] ColdFire pessimizations on QImode/HImode tests
@ 2009-04-10 14:35 bonzini at gnu dot org
2009-05-12 12:08 ` [Bug target/39726] [4.5 Regression][cond-optab] " bonzini at gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: bonzini at gnu dot org @ 2009-04-10 14:35 UTC (permalink / raw)
To: gcc-bugs
unsigned char v;
int baz (unsigned char u, unsigned char w)
{
if ((u - w) & 0x80)
v = 1;
}
Combine does not like as much as for m68k the RTL produced by the optimizers,
because of the lack of byte operations:
(insn 10 9 11 f.c:5 (set (reg:QI 35)
- (and:QI (subreg:QI (reg:SI 34) 3)
-(insn 11 10 12 f.c:5 (set (cc0)
- (compare (reg:QI 35)
(const_int 0 [0x0]))) -1 (nil))
vs.
(insn 10 9 11 f.c:5 (set (reg:QI 35)
+ (subreg:QI (reg:SI 34) 3)) -1 (nil))
+
+(insn 11 10 12 f.c:5 (set (reg:SI 36)
+ (and:SI (subreg:SI (reg:QI 35) 0)
(const_int -128 [0xffffff80]))) -1 (nil))
+(insn 12 11 13 f.c:5 (set (reg:QI 37)
+ (subreg:QI (reg:SI 36) 3)) -1 (nil))
+
+(insn 13 12 14 f.c:5 (set (cc0)
+ (compare (reg:QI 37)
(const_int 0 [0x0]))) -1 (nil))
The extra insn 12 is present because of this in dojump.c:
564 /* The RTL optimizers prefer comparisons against pseudos. */
565 if (GET_CODE (temp) == SUBREG)
566 {
567 /* Compare promoted variables in their promoted mode. */
568 if (SUBREG_PROMOTED_VAR_P (temp)
569 && REG_P (XEXP (temp, 0)))
570 temp = XEXP (temp, 0);
571 else
572 temp = copy_to_reg (temp);
573 }
--
Summary: [cond-optab] ColdFire pessimizations on QImode/HImode
tests
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bonzini at gnu dot org
OtherBugsDependingO 39714
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39726
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/39726] [4.5 Regression][cond-optab] ColdFire pessimizations on QImode/HImode tests
2009-04-10 14:35 [Bug target/39726] New: [cond-optab] ColdFire pessimizations on QImode/HImode tests bonzini at gnu dot org
@ 2009-05-12 12:08 ` bonzini at gnu dot org
2009-05-21 10:38 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bonzini at gnu dot org @ 2009-05-12 12:08 UTC (permalink / raw)
To: gcc-bugs
--
bonzini at gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[cond-optab] ColdFire |[4.5 Regression][cond-optab]
|pessimizations on |ColdFire pessimizations on
|QImode/HImode tests |QImode/HImode tests
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39726
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/39726] [4.5 Regression][cond-optab] ColdFire pessimizations on QImode/HImode tests
2009-04-10 14:35 [Bug target/39726] New: [cond-optab] ColdFire pessimizations on QImode/HImode tests bonzini at gnu dot org
2009-05-12 12:08 ` [Bug target/39726] [4.5 Regression][cond-optab] " bonzini at gnu dot org
@ 2009-05-21 10:38 ` rguenth at gcc dot gnu dot org
2009-07-14 22:31 ` bonzini at gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-21 10:38 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Priority|P3 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39726
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/39726] [4.5 Regression][cond-optab] ColdFire pessimizations on QImode/HImode tests
2009-04-10 14:35 [Bug target/39726] New: [cond-optab] ColdFire pessimizations on QImode/HImode tests bonzini at gnu dot org
2009-05-12 12:08 ` [Bug target/39726] [4.5 Regression][cond-optab] " bonzini at gnu dot org
2009-05-21 10:38 ` rguenth at gcc dot gnu dot org
@ 2009-07-14 22:31 ` bonzini at gnu dot org
2009-07-14 22:42 ` bonzini at gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bonzini at gnu dot org @ 2009-07-14 22:31 UTC (permalink / raw)
To: gcc-bugs
--
bonzini at gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |bonzini at gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-07-14 22:31:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39726
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/39726] [4.5 Regression][cond-optab] ColdFire pessimizations on QImode/HImode tests
2009-04-10 14:35 [Bug target/39726] New: [cond-optab] ColdFire pessimizations on QImode/HImode tests bonzini at gnu dot org
` (2 preceding siblings ...)
2009-07-14 22:31 ` bonzini at gnu dot org
@ 2009-07-14 22:42 ` bonzini at gnu dot org
2009-08-01 21:25 ` bonzini at gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bonzini at gnu dot org @ 2009-07-14 22:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from bonzini at gnu dot org 2009-07-14 22:42 -------
I have a patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39726
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/39726] [4.5 Regression][cond-optab] ColdFire pessimizations on QImode/HImode tests
2009-04-10 14:35 [Bug target/39726] New: [cond-optab] ColdFire pessimizations on QImode/HImode tests bonzini at gnu dot org
` (3 preceding siblings ...)
2009-07-14 22:42 ` bonzini at gnu dot org
@ 2009-08-01 21:25 ` bonzini at gnu dot org
2010-04-06 11:28 ` rguenth at gcc dot gnu dot org
2010-07-31 9:31 ` [Bug target/39726] [4.5/4.6 " rguenth at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: bonzini at gnu dot org @ 2009-08-01 21:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from bonzini at gnu dot org 2009-08-01 21:25 -------
Hmm, the patch changes a canonicalization in a way that may break some patterns
on some targets. :-(
Not sure how to proceed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39726
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/39726] [4.5 Regression][cond-optab] ColdFire pessimizations on QImode/HImode tests
2009-04-10 14:35 [Bug target/39726] New: [cond-optab] ColdFire pessimizations on QImode/HImode tests bonzini at gnu dot org
` (4 preceding siblings ...)
2009-08-01 21:25 ` bonzini at gnu dot org
@ 2010-04-06 11:28 ` rguenth at gcc dot gnu dot org
2010-07-31 9:31 ` [Bug target/39726] [4.5/4.6 " rguenth at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-06 11:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2010-04-06 11:19 -------
GCC 4.5.0 is being released. Deferring to 4.5.1.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.0 |4.5.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39726
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/39726] [4.5/4.6 Regression][cond-optab] ColdFire pessimizations on QImode/HImode tests
2009-04-10 14:35 [Bug target/39726] New: [cond-optab] ColdFire pessimizations on QImode/HImode tests bonzini at gnu dot org
` (5 preceding siblings ...)
2010-04-06 11:28 ` rguenth at gcc dot gnu dot org
@ 2010-07-31 9:31 ` rguenth at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-31 9:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2010-07-31 09:29 -------
GCC 4.5.1 is being released, adjusting target milestone.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.5.1 |4.5.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39726
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-07-31 9:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-10 14:35 [Bug target/39726] New: [cond-optab] ColdFire pessimizations on QImode/HImode tests bonzini at gnu dot org
2009-05-12 12:08 ` [Bug target/39726] [4.5 Regression][cond-optab] " bonzini at gnu dot org
2009-05-21 10:38 ` rguenth at gcc dot gnu dot org
2009-07-14 22:31 ` bonzini at gnu dot org
2009-07-14 22:42 ` bonzini at gnu dot org
2009-08-01 21:25 ` bonzini at gnu dot org
2010-04-06 11:28 ` rguenth at gcc dot gnu dot org
2010-07-31 9:31 ` [Bug target/39726] [4.5/4.6 " rguenth at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).