User: Password:
|
|
Subscribe / Log in / New account

Betrayed by a bitfield

Betrayed by a bitfield

Posted Feb 2, 2012 16:33 UTC (Thu) by darthscsi (subscriber, #8111)
In reply to: Betrayed by a bitfield by darthscsi
Parent article: Betrayed by a bitfield

Oh, and the assembly:

0000000000000000 <foo>:
0: 80 4f 04 01 orb $0x1,0x4(%rdi)
4: 8b 07 mov (%rdi),%eax
6: c3 retq


(Log in to post comments)

Betrayed by a bitfield

Posted Feb 2, 2012 16:47 UTC (Thu) by khim (subscriber, #9252) [Link]

This looks like x86-64 assembler to me, not IA64.

Are you even sure we are talking about the same case? x86-64 works just fine with GCC, too. PowerPC, Sparc and IA-64 (which started the thread) work incorrectly...


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds