logoalt Hacker News

Sweepitoday at 7:55 AM1 replyview on HN

"Bonus bonus chatter: The xor trick doesn’t work for Itanium because mathematical operations don’t reset the NaT bit. Fortunately, Itanium also has a dedicated zero register, so you don’t need this trick. You can just move zero into your desired destination."

Will remember for the next time I write asm for Itanium!


Replies

shawn_wtoday at 8:02 AM

Quite a few architectures have a dedicated 0 register.

show 3 replies