#18 ✓resolved
Peter Johnson

LEA does not support constant expressions exceeding 32-bits

Reported by Peter Johnson | June 25th, 2011 @ 07:48 PM | in 0.3.0 (closed)

Originally posted on Trac by jlawson-yasm@bovine.net
Original Trac Ticket

  Description

  @@@

NASM allows use of "LEA" expressions that exceed 32-bits and silently wraps
them for you. YASM gives an error and refuses to compile when this is done.
In NASM, this works but YASM this fails with "invalid effective address":

%define P 0xB7E15163 %define Q 0x9E3779B9 lea eax,[eax+P+Q]

Normally YASM seems to try to give a warning for many other types of
instructions (mov, add, sub, ...). For example, in NASM this compiles without
warning, but YASM kindly prints out "warning: value does not fit in 32 bit
field" which is good.

%define P 0xB7E15163 %define Q 0x9E3779B9 add eax,P+Q

YASM should be consistent and allow the LEA with large constants, but give a
warning if it wants to.


  
h3. Trac Attachments

h3. Trac Comments
comment:1
    
                  
                  Changed 8 years ago by jlawson-yasm@bovine.net
  Please note that the above was tested with YASM 0.3.0

  comment:1

              Changed 8 years ago by jlawson-yasm@bovine.net

  Cc
    peter@tortall.net added

  Please note that the above was tested with YASM 0.3.0

  Cc
    peter@tortall.net added

comment:2
    
                  
                  Changed 8 years ago by peter@tortall.net
  x86 arch specific, I'll take this one.

  comment:2

              Changed 8 years ago by peter@tortall.net

  Owner
    changed from mu@tortall.net to peter@tortall.net

  Component
    changed from preprocessor: nasm-compatible to architecture: x86

  x86 arch specific, I'll take this one.

  Owner
    changed from mu@tortall.net to peter@tortall.net

  Component
    changed from preprocessor: nasm-compatible to architecture: x86

comment:3
    
                  
                  Changed 8 years ago by peter@tortall.net
  Starting work on this.

  comment:3

              Changed 8 years ago by peter@tortall.net

  Status
    changed from new to assigned

  Starting work on this.

  Status
    changed from new to assigned

comment:4
    
                  
                  Changed 8 years ago by jlawson-yasm@bovine.net
  comment:4

              Changed 8 years ago by jlawson-yasm@bovine.net

  target_milestone
    changed from 0.2.0 to 0.3.0

  target_milestone
    changed from 0.2.0 to 0.3.0

comment:5
    
                  
                  Changed 8 years ago by peter@tortall.net
  Fixed in modules/arch/x86/x86expr.c r1.63.

Thanks for the bug report!

  comment:5

              Changed 8 years ago by peter@tortall.net

  Status
    changed from assigned to resolved

  Resolution
    set to fixed

  Fixed in modules/arch/x86/x86expr.c r1.63.

Thanks for the bug report!

  Status
    changed from assigned to resolved

  Resolution
    set to fixed

Comments and changes to this ticket

  • robinjack

    robinjack May 25th, 2021 @ 07:22 AM

    • Assigned user set to “Peter Johnson”

    Politics is of course very annoying, politicians do annoy me because of their bad performance’
    write down

  • robinjack

    robinjack May 26th, 2021 @ 10:04 AM

    I am glad to be a visitant of this consummate blog ! , appreciate it for this rare information! . https://comparethehosts.com/blog/how-to-fix-pii_email_37f47c404649338129d6-error/

  • robinjack

    robinjack June 2nd, 2021 @ 11:10 AM

    Substantially, the post is really the freshest on that noteworthy topic. I concur with your conclusions and also can eagerly look forward to your coming updates. Simply just saying thanks definitely will not simply be acceptable, for the amazing lucidity in your writing. I can promptly grab your rss feed to stay informed of any updates. Fabulous work and also much success in your business endeavors!
    togel online

  • robinjack

    robinjack June 21st, 2021 @ 11:56 AM

    The the next time I just read a weblog, I really hope that it doesnt disappoint me as much as this one. Get real, It was my method to read, but When i thought youd have something interesting to express. All I hear is usually a number of whining about something you could fix when you werent too busy looking for attention. sbobet mobile

  • mtom

    mtom July 10th, 2021 @ 05:10 AM

    Have you ever thought about including a little bit more than just your articles? I mean, what you say is valuable and everything. sbobet================================You really make it appear really easy along with your presentation but I to find this topic to be really something which I believe I would by no means understand. judi online

  • mtom
  • mtom

    mtom July 10th, 2021 @ 06:53 AM

    I would like to use the opportunity of saying thanks to you for your professional direction I have constantly enjoyed checking out your site. We are looking forward to the particular commencement of my college research and the entire preparing would never have been complete without visiting your site. If I may be of any assistance to others, I’d personally be happy to help as a result of what I have learned from here. situs sbobet


    I am often to blogging and i also truly appreciate your site content. The content has really peaks my interest. I am about to bookmark your blog and maintain checking for new details. https://www.charitynavigator.org/index.cfm?bay=search.summary&orgid=11214


    bedroom furnitures should be sized up and paired with the color and type of your beddings; 먹튀해시태그

  • lenuslenus

    lenuslenus July 10th, 2021 @ 08:13 AM

    I’m no longer certain where you’re getting your information, but good topic. I needs to spend some time studying much more or figuring out more. Thanks for fantastic info I was looking for this information for my mission. 먹튀사이트

    -=-= Great post however , I was wanting to know if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Bless you! http://69.195.78.97/login/

  • mtom

    mtom July 11th, 2021 @ 12:49 PM

    Hi there, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam remarks? If so how do you protect against it, any plugin or anything you can advise? I get so much lately it’s driving me mad so any assistance is very much appreciated. 먹튀검증사이트

  • Madison Wilson
  • Sherry

    Sherry July 12th, 2021 @ 07:16 AM

    This is really helpful for my current research. Thank you so much. Kindly Visit us for more info.

  • mtom

    mtom July 13th, 2021 @ 09:48 AM

    This site post is excellent, probably because of how well the subject was developped. I like some of the comments too though I could prefer we all stay on the suject in order add value to the subject! 補習

  • bushra

    bushra July 14th, 2021 @ 06:57 AM

    Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... click here

  • Richard Robinson

    Richard Robinson July 16th, 2021 @ 03:17 AM

    I maintain such info much. I used to be looking for this particular information for a long time. Thanks and best of luck.

  • robinjack

    robinjack July 17th, 2021 @ 10:53 AM

    This site is usually a walk-through its the knowledge you wished concerning this and didn’t know who need to. Glimpse here, and you’ll certainly discover it. CBD gummies reviewed by CFAH.org

  • damienaloysius (at gmail)

    damienaloysius (at gmail) July 18th, 2021 @ 04:40 AM

    Support for 32 bits should be common nowadays unless the load development is stretched by the YASM capacity to LEA. concrete floor grinding and polishing sydney

  • robinjack

    robinjack July 18th, 2021 @ 10:08 AM

    I’m impressed, I have to admit. Genuinely rarely do you encounter a blog that’s both educative and entertaining, and without a doubt, you may have hit the nail within the head. Your notion is outstanding; the issue is something which too little consumers are speaking intelligently about. My business is delighted we found this within my hunt for something regarding this. purecbdoil

  • mtom

    mtom July 26th, 2021 @ 08:06 AM

    The the next time I just read a weblog, I really hope so it doesnt disappoint me around this place. What i’m saying is, It was my method to read, but I just thought youd have some thing interesting to say. All I hear can be a number of whining about something that you could fix when you werent too busy interested in attention. rental car in karachi

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