This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optab handler for floating point to interger "fix" is not generated


 Thank you very much.
It solves my problem. Now optab for the conversion is generated properly.

 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" "")))] 

 Thank you,

 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 1:21:38 PM
> Subject: Re: optab handler for floating point to interger "fix" is not generated
> On Tue, Nov 25, 2014 at 08:18:39AM -0800, David Kang wrote:
> >  (define_expand "fix_sfsi2"
> 
> The proper name is "fixsfsi2", no underscore. You might want
> "fix_truncsfsi2" instead though.
> 
> 
> Segher

-- 
----------------------
Dr. Dong-In "David" Kang
Computer Scientist
USC/ISI


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]