This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question about Machine Description
- From: yazdanbakhsh <amir dot yazdanbakhsh at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 5 Jun 2010 08:29:30 -0700 (PDT)
- Subject: Re: Question about Machine Description
- References: <63281.24.163.112.200.1128386718.squirrel@webmail.ncsu.edu> <28433505.post@talk.nabble.com> <mcrr5lskb7f.fsf@dhcp-172-17-9-151.mtv.corp.google.com> <28439702.post@talk.nabble.com> <mcr6334kagr.fsf@dhcp-172-17-9-151.mtv.corp.google.com> <28447744.post@talk.nabble.com> <mcrpr1bg144.fsf@dhcp-172-17-9-151.mtv.corp.google.com> <28449607.post@talk.nabble.com> <mcr4oinfwny.fsf@dhcp-172-17-9-151.mtv.corp.google.com> <28476454.post@talk.nabble.com> <mcrbpcsye9x.fsf@dhcp-172-17-9-151.mtv.corp.google.com> <28503521.post@talk.nabble.com>
Hi,
I want to exclude all immediate or instruction. I did this by the following
define_insn
/------------------------------------------------------------------------------
(define_insn "iorsi3"
[(set (match_operand:SI 0 "register_operand" "=d,d")
(ior:SI (match_operand:SI 1 "uns_arith_operand" "%d,d")
(match_operand:SI 2 "uns_arith_operand" "d,K")))
(clobber (match_scratch:SI 3 ""))]
""
"@
or\\t%0,%1,%2
addi\\t%3,0x0,%x2\;or\\t%0,%1,%3"
[(set_attr "type" "arith")
(set_attr "mode" "SI")
(set_attr "length" "1,2")])
/------------------------------------------------------------------------------
I use a temporary register 3, to store intermediate values. but after
compilation the following error happen:
./libgcc2.c:669: internal error--unrecognizable insn:
(insn 787 786 780 (set (reg:SI 104)
(ior:SI (reg:SI 104)
(const_int 65535))) -1 (insn_list 786 (nil))
(expr_list:REG_EQUAL (const_int 16777215)
(nil)))
xgcc: Internal compiler error: program cc1 got fatal signal 6
make: *** [libgcc2.a] Error 1
//----------------------------------------------------------------------
I appreciate any help.
Bestr
--
View this message in context: http://old.nabble.com/Question-about-Machine-Description-tp1026428p28790054.html
Sent from the gcc - Dev mailing list archive at Nabble.com.