Are x86 builtin load functions const?

2008-04-28 Thread H.J. Lu
Hi, I noticed that x86 builtin load functions aren't defined with def_builtin_const. Is this an oversight or intentional? Thanks. H.J.

Re: Are x86 builtin load functions const?

2008-04-28 Thread Andrew Pinski
On Mon, Apr 28, 2008 at 12:47 PM, H.J. Lu [EMAIL PROTECTED] 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

Re: Are x86 builtin load functions const?

2008-04-28 Thread H.J. Lu
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 [EMAIL

Re: Are x86 builtin load functions const?

2008-04-28 Thread H.J. Lu
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 [EMAIL PROTECTED] wrote: I am combining most x86 SIMD builtins into bdesc_sse_args. I only define store builtins with def_builtin. The rest will be

Re: Are x86 builtin load functions const?

2008-04-28 Thread Andrew Pinski
On Mon, Apr 28, 2008 at 5:16 PM, H.J. Lu [EMAIL PROTECTED] wrote: Load builtins can't be const since they may return different values on the same pointer value. They should be pure though. -- Pinski