[EMAIL PROTECTED] wrote on 18/02/2007 17:01:31:

> Hi,
>
> >
> > I am not sure if this message is still relevant.  Anyhow, I think
> > following another built-in under zero_arg_builtins
("__builtin_alpha_rpcc"
> > in alpha.c for example) could help in finding the missing part in this
> > implementation.
> >
>
> the message is still relevant. I tried to use as example the currently
> existing intrinsics. But there is something that I miss. For example,
> CODE_FOR_* constants/variables (pointer to function) are supposed to
> be defined in some source file but I couldn't find where. At compile
> time I got an error that it is not defined. I suppose that when GCC is
> being compiled some automatic code generation happens (from machine
> descriptors) that defines these CODE_FOR_* variables.

Try to write

 (define_insn "builtin_myintrinsic"
 [(unspec_volatile [(const_int 0)] 101)]
 ""
 "xor $31, $0, $31")

instead of

(define_insn "myintrinsic"
 [(unspec_volatile [(const_int 0)] 101)]
 ""
 "xor $31, $0, $31")

in alpha.md, I think this will solve the CODE_FOR_* problem.

Revital

Reply via email to