public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Patch for 2.95.3
@ 2000-12-07  3:33 Gunther Nikl
  2000-12-07  5:39 ` Bernd Schmidt
  0 siblings, 1 reply; 9+ messages in thread
From: Gunther Nikl @ 2000-12-07  3:33 UTC (permalink / raw)
  To: gcc; +Cc: bernds

Hello!

I would like to see the following patch installed in 2.95.3:

   http://gcc.gnu.org/ml/gcc-patches/2000-01/msg00000.html

This patch fixes the loss of a pending stack adjust (happens eg. on
m68k for m68060)

Gunther Nikl

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Bit fields
@ 2009-08-31 20:07 Jean Christophe Beyler
  2009-08-31 20:36 ` Ian Lance Taylor
  0 siblings, 1 reply; 9+ messages in thread
From: Jean Christophe Beyler @ 2009-08-31 20:07 UTC (permalink / raw)
  To: gcc

Dear all,

I am currently working on handling bit-fields on my port and am having
difficulties understanding why GCC is having problems with what I
wrote in.

Following what mips did:

(define_expand "extzv"
  [(set (match_operand 0 "register_operand")
    (zero_extract (match_operand 1 "nonimmediate_operand")
              (match_operand 2 "immediate_operand")
              (match_operand 3 "immediate_operand")))]
  "!TARGET_MIPS16"
{
  ...
})

(define_insn "extzv<mode>"
  [(set (match_operand:GPR 0 "register_operand" "=d")
    (zero_extract:GPR (match_operand:GPR 1 "register_operand" "d")
              (match_operand:SI 2 "immediate_operand" "I")
              (match_operand:SI 3 "immediate_operand" "I")))]
  "mips_use_ins_ext_p (operands[1], INTVAL (operands[2]),INTVAL (operands[3]))"
  "<d>ext\t%0,%1,%3,%2"
  [(set_attr "type" "arith")
   (set_attr "mode" "<MODE>")])

I did:

(define_insn "extzv"
   [(set (match_operand 0 "register_operand" "")
         (zero_extract (match_operand 1 "register_operand" "")
                       (match_operand 2 "const_int_operand" "")
                       (match_operand 3 "const_int_operand" "")))]
 ""
 "")

(define_insn "extzvdi2"
   [(set (match_operand:DI 0 "register_operand" "=r")
         (zero_extract:DI (match_operand:DI 1 "register_operand" "r")
                       (match_operand:DI 2 "const_int_operand" "L")
                       (match_operand:DI 3 "const_int_operand" "L")))]
 "check_extract (DImode, DImode, operands[2], operands[2])"
 "extr\\t%0,%1,%3,%2";
 [(set_attr "type"     "arith")
  (set_attr "mode"     "DI")
  (set_attr "length"   "1")])

For the moment, I haven't put anything in my expand because I don't
know if anything is necessary yet. I was first looking at if GCC was
generating the right code on simple examples.

But I get this message:
struct4.c: In function 'goo':
struct4.c:32: internal compiler error: in simplify_subreg, at
simplify-rtx.c:4923

Does anybody know how can I solve this issue ?
Thanks again for all your help,
Jean Christophe Beyler

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

end of thread, other threads:[~2009-09-01 14:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-07  3:33 Patch for 2.95.3 Gunther Nikl
2000-12-07  5:39 ` Bernd Schmidt
2000-12-07  6:58   ` Bit Fields Matt Minnis
2009-08-31 20:07 Bit fields Jean Christophe Beyler
2009-08-31 20:36 ` Ian Lance Taylor
2009-08-31 21:27   ` Jean Christophe Beyler
2009-08-31 21:53     ` Richard Henderson
     [not found]       ` <c568a2600908311407i154c858eq9c5b085cafdc4d3b@mail.gmail.com>
     [not found]         ` <4A9C4029.2070205@redhat.com>
2009-09-01  2:20           ` Jean Christophe Beyler
2009-09-01 14:54             ` Richard Henderson

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).