public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/30451]  New: incorrect attributes in *movti_ppc64 of rs6000.md
@ 2007-01-12 20:39 dkwan at transmeta dot com
  2007-01-12 21:28 ` [Bug target/30451] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dkwan at transmeta dot com @ 2007-01-12 20:39 UTC (permalink / raw)
  To: gcc-bugs

I found the following problem in rs6000.md:

(define_insn "*movti_ppc64"
  [(set (match_operand:TI 0 "nonimmediate_operand" "=r,o<>,r")
        (match_operand:TI 1 "input_operand" "r,r,m"))]
  "TARGET_POWERPC64 && (gpc_reg_operand (operands[0], TImode)
   || gpc_reg_operand (operands[1], TImode))"
  "#"
  [(set_attr "type" "*,load,store")])

It appears that the order of the load and store attributes in the set_attr
expression is incorrect. If operand 0 is memory (o<>) and operand 1 is a
register (r), the instruction should be a store, not a load. Similarly, if
operand 0 is a register ("r") and operand 1 memory ("m"), the instruction
should be load, not a store.

I think either the constraint order or the attribute order need to be reversed
to make constraints and attributes match.


-- 
           Summary: incorrect attributes in *movti_ppc64 of rs6000.md
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dkwan at transmeta dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: ppu-unknown-lv2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30451


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-28 23:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-12 20:39 [Bug target/30451] New: incorrect attributes in *movti_ppc64 of rs6000.md dkwan at transmeta dot com
2007-01-12 21:28 ` [Bug target/30451] " pinskia at gcc dot gnu dot org
2007-01-14  5:21 ` pinskia at gcc dot gnu dot org
2007-01-14  5:47 ` dkwan at transmeta dot com
2007-03-05  4:56 ` dje at gcc dot gnu dot org
2009-03-12  4:45 ` bje at gcc dot gnu dot org
2009-03-28 23:27 ` bje at gcc dot gnu dot org
2009-03-28 23:55 ` bje 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).