public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Could not split insn
@ 2004-09-13  9:55 Petar Penchev
  2004-09-14  2:02 ` Hans-Peter Nilsson
  2004-09-14  3:05 ` James E Wilson
  0 siblings, 2 replies; 8+ messages in thread
From: Petar Penchev @ 2004-09-13  9:55 UTC (permalink / raw)
  To: gcc


Hello all,
I have define "iorsi3" instruction in my .md file as follows :

(define_insn_and_split "iorsi3"
   [(set (match_operand:SI 0 "nonimmediate_nonstack_operand"		"=b,  o")
	(ior:SI (match_operand:SI 1 "nonimmediate_nonstack_operand"	"%0,  0")
		  (match_operand:SI 2 "general_operand"				"boi, boi")))
    (clobber (match_scratch:HI 3							"=X,  &r"))]
   ""
   "#"
   "reload_completed"
   [(const_int 0)]
   "split_logical(HImode, IOR, operands);
    DONE;"
)

Where constraint 'b' is general-purpose register, which supports SImode.
I tried to compile newlib with optimization -O1 and I have got folowing  
message:

../../../../../newlib_src/newlib/libc/stdlib/mprec.c: In function  
`_lshift':
../../../../../newlib_src/newlib/libc/stdlib/mprec.c:515: error: could not  
split insn
(insn 222 278 279 (parallel [
             (set (reg:SI 0 A)
                 (ior:SI (reg:SI 0 A)
                     (const_int 0 [0x0])))
             (clobber (scratch:HI))
         ]) 62 {iorsi3} (insn_list 96 (nil))
     (expr_list:REG_UNUSED (scratch:HI)
         (nil)))
../../../../../newlib_src/newlib/libc/stdlib/mprec.c:515: internal  
compiler error: in final_scan_insn, at final.c:2429

Register A is accessible in SImode.
But it seems to me that pattern should be matched by the split.


Does anybody have met the same problem ?



-- 
Regards
Petar Penchev

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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-13  9:55 Could not split insn Petar Penchev
2004-09-14  2:02 ` Hans-Peter Nilsson
2004-09-14  2:09   ` Hans-Peter Nilsson
2004-09-14 10:22   ` Petar Penchev
2004-09-14 13:40   ` Dave Korn
2004-09-14 16:54     ` Hans-Peter Nilsson
2004-09-14 17:52       ` Dave Korn
2004-09-14  3:05 ` James E Wilson

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