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: Are x86 builtin load functions "const"?


Load builtins can't be const since they may return different values on
the same pointer value.

H.J.
On Mon, Apr 28, 2008 at 1:19 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> I am combining most x86 SIMD builtins into bdesc_sse_args.
>  I only define store builtins with def_builtin. The rest will be
>  defined with def_builtin_const., including load builtins. I want
>  to make sure that it is OK to do so.
>
>  Thanks.
>
>  H.J.
>
>
> On Mon, Apr 28, 2008 at 12:50 PM, Andrew Pinski <pinskia@gmail.com> wrote:
>  > On Mon, Apr 28, 2008 at 12:47 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>  >  >  I noticed that x86 builtin load functions aren't defined
>  >  >  with def_builtin_const. Is this an oversight or intentional?
>  >
>  >  I don't see why they can't be defined as const, the only time I can
>  >  think of is when you have -fnon-call-exceptions turned on as they can
>  >  trap.
>  >  Why do you think this is wrong?
>  >
>  >  Thanks,
>  >  Andrew Pinski
>  >
>


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