on-internet
← Community

Why x86 doesn't have conditional predicated execution like ARM's IT / ITT, and why no link-register for return addresses?

Stack Overflow ·

For example, ARM has conditional execution IT(if-then) blocks that allow the next few instruction to be executed conditionally. (And in ARM mode, not Thumb, predication doesn't even need an extra instruction. The top 4 bits of every instruction, except some newer opcodes like SIMD, are the predicate condition.) Also ARM has an LR (link register) which allows leaf functions to be implemented without touching the stack as opposed to x86. I've heard about instructions like cmove and conditional forms of imul, but they aren't very helpful if i just need a simple ITT (if-then-then) instruction.

Comments

Sign in or sign up to comment and upvote.

No comments yet.