On 28.05.2013 12:35, Ondřej Bílka wrote:
Did you tried if following gets optimized out?
(((long)atpr)%16 != 0) abort();
No, it is not, it generates:
406eb0: a8 0f test $0xf,%al
406eb2: 48 89 44 24 58 mov%rax,0x58(%rsp) // unrelated
406eb7
On Tue, May 28, 2013 at 12:15:58PM +0300, Anton Titov wrote:
> Hello everybody,
>
> (I'm not a member, CC me in replies)
>
> I'm trying to force gcc to trust me that my memory allocation
> function is returning aligned memory. So far I tried everything I
> found with no luck. What I have is:
>
s
On 28.05.2013 12:19, Marc Glisse wrote:
On Tue, 28 May 2013, Anton Titov wrote:
I'm trying to force gcc to trust me that my memory allocation
function is returning aligned memory. So far I tried everything I
found with no luck.
Did you try using __builtin_assume_aligned?
I've tried it now a
On Tue, 28 May 2013, Anton Titov wrote:
I'm trying to force gcc to trust me that my memory allocation function is
returning aligned memory. So far I tried everything I found with no luck.
Did you try using __builtin_assume_aligned?
--
Marc Glisse