Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
Cortex-M3 Branch instruction encoding?
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
2 replies
Subscribers
126 subscribers
Views
2005 views
Users
0 members are here
Related
Cortex-M3 Branch instruction encoding?
Offline
Chris Burrows
over 7 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?
Offline
Chris Burrows
over 7 years ago
Note: This was originally posted on 11th June 2012 at
http://forums.arm.com
Yes - you are right. I Googled your version of the statement and found that it was actually present in earlier revisions of the manual.
Also, with the benefit of hindsight, the note in the latest manual that the range of allowed offsets for encoding T3 is -1048576 to 1048574 clearly shows that it must be a 21-bit number so the J1 and J2 bits must be used.
Thank you very much for helping to solve that puzzle for me,
Chris.
Cancel
Up
0
Down
Reply
Cancel
Offline
Simon Craske
over 7 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
Up
0
Down
Reply
Cancel
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Answered
DSTREAM Probe damage - Spare parts?
0
DSTREAM
11284
views
2
replies
Latest
6 months ago
by
SamGKN
Suggested Answer
Optimized ARM version of memcmp
0
9867
views
3
replies
Latest
6 months ago
by
Ronan Synnott
Not Answered
Develop Kotlin apps with OpenCl to run in a Samsung mobile that use Mali G71
0
8852
views
2
replies
Latest
6 months ago
by
ARMStrongssen
Answered
FVP Debug problems for Blinky Example project on Cortex-M4
0
Fixed Virtual Platforms (FVPs)
Debugging
Cortex-M4
9685
views
2
replies
Latest
6 months ago
by
Sagittarius
Answered
Product license check-out for feature "platform_editor:202003" failed
0
ARM Development Suite (ADS)
DSTREAM
9865
views
2
replies
Latest
6 months ago
by
David DV
<
>
View all questions in Arm Development Studio forum