-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from dop-amin/ext-branch-loop
Armv7m: Allow subs with immediate and two registers
- Loading branch information
Showing
5 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
movw r5, #16 | ||
start: | ||
subs.w r5, #1 | ||
bne.w start | ||
bne.w start | ||
|
||
movw r5, #16 | ||
start2: | ||
eor.w r0, r0, r7 | ||
mul r1, r0, r8 | ||
eor.w r0, r1, r4 | ||
subs.w r5, r5, #1 | ||
bne.w start2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,55 @@ | ||
movw r5, #16 | ||
start: | ||
// Instructions: 0 | ||
// Expected cycles: 0 | ||
// Expected IPC: 0.00 | ||
// | ||
// Wall time: 0.02s | ||
// User time: 0.02s | ||
// | ||
subs r5, #1 | ||
bne start | ||
|
||
movw r5, #16 | ||
// Instructions: 0 | ||
// Expected cycles: 0 | ||
// Expected IPC: 0.00 | ||
// | ||
// Wall time: 0.00s | ||
// User time: 0.00s | ||
// | ||
subs r5, #1 | ||
bne start | ||
start2: | ||
// Instructions: 4 | ||
// Expected cycles: 4 | ||
// Expected IPC: 1.00 | ||
// | ||
// Cycle bound: 2.0 | ||
// IPC bound: 2.00 | ||
// | ||
// Wall time: 0.03s | ||
// User time: 0.03s | ||
// | ||
// ----- cycle (expected) ------> | ||
// 0 25 | ||
// |------------------------|---- | ||
subs.w r5, r5, #1 // *............................. | ||
eor.w r0, r0, r7 // *............................. | ||
mul r1, r0, r8 // .*............................ | ||
eor.w r0, r1, r4 // ...*.......................... | ||
|
||
// ------ cycle (expected) ------> | ||
// 0 25 | ||
// |------------------------|----- | ||
// eor.w r0, r0, r7 // *...~...~...~...~...~...~...~.. | ||
// mul r1, r0, r8 // .*..'~..'~..'~..'~..'~..'~..'~. | ||
// eor.w r0, r1, r4 // ...*'..~'..~'..~'..~'..~'..~'.. | ||
// subs.w r5, r5, #1 // *...~...~...~...~...~...~...~.. | ||
|
||
bne start2 | ||
// Instructions: 0 | ||
// Expected cycles: 0 | ||
// Expected IPC: 0.00 | ||
// | ||
// Wall time: 0.00s | ||
// User time: 0.00s | ||
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters