Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Cortex-M3 Branch instruction encoding?
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
118 subscribers
Views
3305 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
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
Cortex-M3 Branch instruction encoding?
Chris Burrows
over 12 years ago
Note: This was originally posted on 11th June 2012 at
http://forums.arm.com
In the process of implementing the Cortex-M3 code generator for our Astrobe Oberon compiler I was unable to find a definition for the calculation of 'imm32' in the T3 Encoding version of the 32-bit conditional branch instruction (see Section A7.7.12 of ARMv7-M Architecture Reference Manual, ARM DDI 0403D)
Experiments indicate that the J1 and J2 bits are not used and the definition is:
imm32 = SignExtend(S:imm6:imm11:'0', 32);
Is that correct?
Parents
Simon Craske
over 12 years ago
Note: This was originally posted on 11th June 2012 at
http://forums.arm.com
I believe it's meant to be: imm32 = SignExtend(S:J2:J1:imm6:imm11:'0', 32);
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Reply
Simon Craske
over 12 years ago
Note: This was originally posted on 11th June 2012 at
http://forums.arm.com
I believe it's meant to be: imm32 = SignExtend(S:J2:J1:imm6:imm11:'0', 32);
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Children
No data