public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* CDImode in reg
@ 2011-10-04  9:33 Aurelien Buhrig
  2011-10-04 14:07 ` Ian Lance Taylor
  0 siblings, 1 reply; 9+ messages in thread
From: Aurelien Buhrig @ 2011-10-04  9:33 UTC (permalink / raw)
  To: gcc-help

Hi,

I'm trying to get the gcc testsuite passing for my new target port.
The last ICE deals with complex long long (gcc.c-torture/compile/20000804-1.c).
My target has 16-bit wide int, and regs can hold DImode max.

code:

  __complex__ long long v;
  asm("": "+r" (v) : "r" (0), "r" (1));

Is such the testcase an expected fail or not ?
Operations on complex are often split into DI operations. But the
target cannot hold a whole CDI into one register, but could hold 2 DI
into 2 distinct DI regs.

If it is an xfail, is there a way handle such a case at higher level
to prevent an ICE and generate a more user friendly error message ?

If it is a fail, I have no idea how to fix this (pb with
init_move_cost(CDImode), with a gcc_assert
(have_regs_of_mode[CDImode]))

Thanks,
Aurélien

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

end of thread, other threads:[~2011-10-05 13:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-04  9:33 CDImode in reg Aurelien Buhrig
2011-10-04 14:07 ` Ian Lance Taylor
2011-10-04 14:53   ` Aurelien Buhrig
2011-10-04 15:52     ` Segher Boessenkool
2011-10-04 16:19     ` Ian Lance Taylor
2011-10-04 17:00       ` Aurelien Buhrig
2011-10-04 18:22         ` Ian Lance Taylor
2011-10-05  7:31           ` Aurelien Buhrig
2011-10-05 13:55             ` Ian Lance Taylor

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