flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
l4m2
Code: 66 0F 58 D3 addpd xmm2,xmm3 Move to where, i dont know |
|||
![]() |
|
CandyMan
Code: 0F 58 D3 addps xmm2,xmm3 _________________ smaller is better |
|||
![]() |
|
revolution
x86 instruction encoding has evolved over time. There are many things in there that are weird and redundant. But for the time being we are stuck with it.
Last edited by revolution on 22 Mar 2015, 10:16; edited 2 times in total |
|||
![]() |
|
l4m2
CandyMan wrote:
I first know 66 not only change between 16b 32 |
|||
![]() |
|
revolution
This is a weird anomaly also:
Code: xor eax,eax ;null pointer with Z flag set cmovnz ecx,[eax] ;<--- crashes even when the condition is false |
|||
![]() |
|
l4m2
revolution wrote: This is a weird anomaly also: |
|||
![]() |
|
revolution
The error can be held pending and only allowed to propagate once the condition is known and evaluated. Other CPUs can do speculative memory reads in this way so in a technical sense there is no reason it couldn't have worked this way.
|
|||
![]() |
|
l4m2
revolution wrote: The error can be held pending and only allowed to propagate once the condition is known and evaluated. Other CPUs can do speculative memory reads in this way so in a technical sense there is no reason it couldn't have worked this way. Code: a=ptr?ptr[0]:0 |
|||
![]() |
|
revolution
Notably missing is "cmovcc reg,imm".
|
|||
![]() |
|
AsmGuru62
Intel manual says that CMOVxx memory operand must be accessible.
Not sure about AMD. |
|||
![]() |
|
revolution
AsmGuru62 wrote: Intel manual says that CMOVxx memory operand must be accessible. ![]() Last edited by revolution on 23 Mar 2015, 00:30; edited 1 time in total |
|||
![]() |
|
HaHaAnonymous
Quote:
The behavior is the same but the performance differs. Usually in favor of Intel (see FPU, SSE and AVX). One of the reasons "floating point" enthusiasts usually prefer Intel. ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.