Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 909547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:53:46+00:00 2026-05-15T16:53:46+00:00

For exmaple: How to represent the following x86 in SSA form : xor eax,

  • 0

For exmaple:

How to represent the following x86 in SSA form:

xor  eax, eax
inc  ax

By introducing some pseudo functions, I come up with:

eax@1 = eax@0 ^ eax@0
ax@1 = LOWORD(eax@1)
al@1 = LOBYTE(ax@1)
ah@1 = HIBYTE(ax@1)
hax@1 = HIWORD(eax@1)

ax@2 = ax@1 + 1
eax@2 = MAKEDWORD(ax@2, HIWORD(eax@1))
al@2 = LOBYTE(ax@2)
ah@2 = HIBYTE(ax@2)

But I think it’s too much verbose

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:53:47+00:00Added an answer on May 15, 2026 at 4:53 pm

    Using your notation:

    1. eax@0 = … whatever it was before here …
    2. eax@1 = 0
    3. ax@2 = ax@1 + 1

    Because eax contains ax, there’s an implicit step in between 2 and 3

    1. eax@0 = …
    2. eax@1 = 0
    3. ax@1 = 0 (because ax cannot be non-zero if eax is zero)
    4. ax@2 = ax@1 + 1

    Step 2 because any number xor’ed with itself is 0… eax@0 is dead at that point, and thus eax@1 can be renamed (using ebx as renaming so it’s readable; obviously you would use a virtual register, not a real one):

    1. — deleted, eax no longer relevant
    2. ebx@0 = 0
    3. bx@0 = 0
    4. bx@1 = bx@0 + 1

    You could then note that because step 3 is a constant function, so is step 4 (adding a constant to a constant) and compress the two together (i.e. constant folding)

    1. — deleted, eax no longer relevant
    2. ebx@0 = 0
    3. bx@0 = 1

    If the upper 16 bits of ebx don’t dominate anything below this, you could also delete step 2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following situation: I have an array with some constant values, which represent ranges. A
How to I represent the following datamodel in sql tables. I have 3 entities,
I want to represent a graph in Haskell in the following manner: For each
I want to represent a graph in Dr. Scheme in the following manner: For
I have the following generic schema to represent different types of information. var Record
So, I'd like to represent one of Shakespeare's plays, Hamlet, into the following objects
Can I represent the following co-ordinate triplets using variable type double? 512685.93 5403444.22 305.63,
In the following ruby example, what does the & represent? Is it along the
I've come across the following t-sql: SELECT {d'9999-12-31'} Which returns 9999-12-31 00:00:00.000 . This
If I have the following example file where each number is represents a byte

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.