This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: optab handler for floating point to interger "fix" is not generated
- From: David Kang <dkang at isi dot edu>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: Tue, 25 Nov 2014 13:03:09 -0800 (PST)
- Subject: Re: optab handler for floating point to interger "fix" is not generated
- Authentication-results: sourceware.org; auth=none
Thanks a lot.
As a newbie, I keep reading the gccint manual and the source code.
But, the document is not kind enough for a newbie to jump start in a short amount of time.
Sometimes an advice from an expert gives a newbie a breakthrough.
I appreciate your help!
David
----- Original Message -----
> From: "Segher Boessenkool" <segher@kernel.crashing.org>
> To: "David Kang" <dkang@isi.edu>
> Cc: "GCC" <gcc@gcc.gnu.org>
> Sent: Tuesday, November 25, 2014 3:25:47 PM
> Subject: Re: optab handler for floating point to interger "fix" is not generated
> On Tue, Nov 25, 2014 at 10:45:06AM -0800, David Kang wrote:
> > Is the logical operators described similarly?
> > I tried "seqf2", "cmpseqf2", and "one_cmplseqf2" for "eq" of two
> > floating point numbers as it is shown below.
> > But none of them work.
> >
> > (define_expand "seqf2"
> > [(set (match_operand:SI 0 "register_operand" "")
> > (eq:SI (match_operand:SF 1 "register_operand" "")
> > (match_operand:SF 2 "register_operand" "")))]
>
> This is done via cstoresf4. Please see the `gccint' manual, available
> online or via e.g. `make pdf'; or read gcc/doc/md.texi directly.
>
>
> Segher
--
----------------------
Dr. Dong-In "David" Kang
Computer Scientist
USC/ISI