by joosters · 11y ago · 0 comments
SUBS R1,R2,R3
ADDEQ R4,R4,#1
whereas in other instruction sets you'd have to branch over the 'ADD' instruction if the previous comparison was non-zero.(Not sure if this applies to ARM thumb style instructions or not; my ARM experience is very out of date!)
IT EQ
The 'IT' is for 'if then'.
There could also be more 'then's and 'else's for the conditional execution of muliple instructions: ITTE LT
(If then then else)
The following instructions could for example be: ADDEQ ...
STREQ ...
BNE ... (Branch - not equal because of the else)
Source:
http://community.arm.com/groups/processors/blog/2010/09/30/c... ittee eq
addeq ...
addeq ...
addne ...
addne ...
I believe ARM v8 dropped all this.http://www.cs.umd.edu/class/fall2001/cmsc411/projects/IA64-2...
http://www.drdobbs.com/embedded-systems/predication-speculat...
Predication allows all of the code to be executed, and a subset of the results of the code — those from the failing test — discarded.