Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
CMP vc EORS
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
2530 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
CMP vc EORS
Etienne SOBOLE
over 12 years ago
Note: This was originally posted on 28th June 2011 at
http://forums.arm.com
Can anybody explain me why this code
cmp r0, r1
bne .exit
is not equivalent to
eors r2, r0, r1
bne .exit
except that r2 is changed of course !!!
Is the Z flag set when the destination register value is 0 ?
Parents
Simon Craske
over 12 years ago
Note: This was originally posted on 28th June 2011 at
http://forums.arm.com
Strictly speaking if you care about the N, C and V flags they're not.
CMP =~ SUBS
CMN =~ ADDS
TST =~ ANDS
TEQ =~ EORS
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Reply
Simon Craske
over 12 years ago
Note: This was originally posted on 28th June 2011 at
http://forums.arm.com
Strictly speaking if you care about the N, C and V flags they're not.
CMP =~ SUBS
CMN =~ ADDS
TST =~ ANDS
TEQ =~ EORS
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Children
No data