For ARM thumb2 style you need a third instruction between the two:
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...Sort of. Thumb requires that you use an 'it' instruction before a block of up to 4 conditional instructions. Think "if-then". You can make each instruction a 'then' or an 'else' by instruction variants. E.g. something like
ittee eq
addeq ...
addeq ...
addne ...
addne ...
I believe ARM v8 dropped all this.Thumb and Arm64 dropped support for conditional execution.
You might be interested in Itanium and the IA-64 architecture, which has what is referred to as branch predication:
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.
(Not sure if this applies to ARM thumb style instructions or not; my ARM experience is very out of date!)