Arm Community
Site
Search
User
Site
Search
User
Arm Developer
Documentation
Learning Paths
On-Demand Videos
Groups
Arm Ambassadors
Education Hub
Open Source Software and Platforms
Research Collaboration and Enablement
Forums
AI forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Automotive forum
Compilers and Libraries forum
Embedded and Microcontrollers forum
Internet of Things (IoT) forum
Keil forum
Laptops and Desktops forum
Mobile, Graphics, and Gaming forum
Morello forum
Operating Systems forum
Servers and Cloud Computing forum
SoC Design and Simulation forum
SystemReady Forum
Blogs
AI blog
Announcements
Architectures and Processors blog
Automotive blog
Embedded and Microcontrollers blog
Internet of Things (IoT) blog
Laptops and Desktops blog
Mobile, Graphics, and Gaming blog
Operating Systems blog
Servers and Cloud Computing blog
SoC Design and Simulation blog
Tools, Software and IDEs blog
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Arm Development Studio forum
CMP vc EORS
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
120 subscribers
Views
2430 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 11 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 11 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 11 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