Displaying 2 results from an estimated 2 matches for "80480a8".
Did you mean:
80480a3
2020 Jan 07
2
Inline assembly in intel syntax mishandling i constraint
..."i,~{dirflag},~{fpsr},~{flags}"(i32* @foo) #1, !srcloc !3
call void asm sideeffect "movl $0, %ebx", "i,~{dirflag},~{fpsr},~{flags}"(i32* @bar) #1, !srcloc !4
ret void
}
When assembled, I get the expected output
80480a3: b8 b0 90 04 08 mov eax,0x80490b0
80480a8: bb b4 90 04 08 mov ebx,0x80490b4
After modifying the second one to be
call void asm sideeffect inteldialect "mov ebx, $0", "i,~{dirflag},~{fpsr},~{flags}"(i32* @bar) #1, !srcloc !4
and assembling, I get the unexpected output
80480a3: b8 b0 90 04 08 mov...
2020 Jan 08
2
Inline assembly in intel syntax mishandling i constraint
...32* @foo) #1, !srcloc !3
> call void asm sideeffect "movl $0, %ebx", "i,~{dirflag},~{fpsr},~{flags}"(i32* @bar) #1, !srcloc !4
> ret void
> }
>
> When assembled, I get the expected output
> 80480a3: b8 b0 90 04 08 mov eax,0x80490b0
> 80480a8: bb b4 90 04 08 mov ebx,0x80490b4
>
>
> After modifying the second one to be
> call void asm sideeffect inteldialect "mov ebx, $0", "i,~{dirflag},~{fpsr},~{flags}"(i32* @bar) #1, !srcloc !4
> and assembling, I get the unexpected output
>...