#306 new
jh dev

64 bit mode: immediate operands issue for sizes >= 32 bits

Reported by jh dev | January 24th, 2017 @ 02:27 PM

version: yasm-1.3.0 (vsyasm)

options: -f x64 -r gas -p gas

asm src (+ yasm output):

andq $0x000000003FFFFFFF, %r8 andq $0x000000007FFFFFFF, %r8 andq $0x00000000FFFFFFFF, %r8 andq $0x00000001FFFFFFFF, %r8 => warning : value does not fit in 32 bit field andq $0x00000003FFFFFFFF, %r8 => warning : value does not fit in 32 bit field andq $0xFFFFFFFFFFFFFFFF, %r8 => warning : value does not fit in 32 bit field

debugger disassembly (+ correct operands):

000000013F924E87 and r8,3FFFFFFFh
000000013F924E8E and r8,7FFFFFFFh
000000013F924E95 and r8,0FFFFFFFFFFFFFFFFh => should be 0FFFFFFFFh
000000013F924E9C and r8,0FFFFFFFFFFFFFFFFh => should be 1FFFFFFFFh
000000013F924EA3 and r8,0FFFFFFFFFFFFFFFFh => should be 3FFFFFFFFh
000000013F924EAA and r8,0FFFFFFFFFFFFFFFFh

This issue seems to be independent of preprocessor and syntax options.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Pages