4 ms·
Code alignment? I mean, the different instructions change the alignment of the rest of the code. - 64 bit register 0: 48 c7 c1 01 00 00 00 mov rcx,
by juancn 2y ago
Code alignment? I mean, the different instructions change the alignment of the rest of the code.
- 64 bit register
0: 48 c7 c1 01 00 00 00 mov rcx,0x1
- 32 bit register
0: b9 01 00 00 00 mov ecx,0x1
It should be easy to test by adding a couple of NOPs to the fast version:
0: b9 01 00 00 00 mov ecx,0x1
5: 90 nop
6: 90 nop
and see if it regresses again.
I don't have an Alder Lake to test on.
- BeeOnRope 2y agohttps://news.ycombinator.com/item?id=42582623 https://news.ycombinator.com/item?id=42582623
- tavianator 2y agoIn general I'd be very surprised if code alignment had much effect on a 10,000 instruction block, especially since the instruction is 5 bytes long so it will quickly unalign itself