forked from tromey/gdb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: Issue a warning when the MRRC and MRRC2 instructions are used wi…
…th the same destination registers. * config/tc-arm.c (do_co_reg2c): Added constraint. * testsuite/gas/arm/dest-unpredictable.s: New. * testsuite/gas/arm/dest-unpredictable.l: New. * testsuite/gas/arm/dest-unpredictable.d: New.
- Loading branch information
1 parent
0646e07
commit 873f10f
Showing
5 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
2016-08-19 Tamar Christina <[email protected]> | ||
|
||
* config/tc-arm.c (do_co_reg2c): Added constraint. | ||
* testsuite/gas/arm/dest-unpredictable.s: New. | ||
* testsuite/gas/arm/dest-unpredictable.l: New. | ||
* testsuite/gas/arm/dest-unpredictable.d: New. | ||
|
||
2016-08-19 Nick Clifton <[email protected]> | ||
|
||
* testsuite/gas/i386/ilp32/x86-64-unwind.d: Adjust expected | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# name: Unpredictable MRRC and MRRC2 instructions. - ARM | ||
# error-output: dest-unpredictable.l |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[^:]*: Assembler messages: | ||
[^:]*:6: Error: registers may not be the same -- `mrrc p0,#1,r1,r1,c4' | ||
[^:]*:7: Error: registers may not be the same -- `mrrc2 p0,#1,r1,r1,c4' | ||
[^:]*:20: Error: registers may not be the same -- `mrrc p0,#1,r1,r1,c4' | ||
[^:]*:21: Error: registers may not be the same -- `mrrc2 p0,#1,r1,r1,c4' |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.syntax unified | ||
|
||
.arm | ||
|
||
@ warnings | ||
mrrc p0,#1,r1,r1,c4 @ unpredictable | ||
mrrc2 p0,#1,r1,r1,c4 @ ditto | ||
|
||
@ normal | ||
mrrc p0,#1,r1,r2,c4 @ predictable | ||
mrrc2 p0,#1,r1,r2,c4 @ ditto | ||
mcrr p0,#1,r1,r2,c4 @ ditto | ||
mcrr2 p0,#1,r1,r2,c4 @ ditto | ||
mcrr p0,#1,r1,r1,c4 @ ditto | ||
mcrr2 p0,#1,r1,r1,c4 @ ditto | ||
|
||
.thumb | ||
|
||
@ warnings | ||
mrrc p0,#1,r1,r1,c4 @ unpredictable | ||
mrrc2 p0,#1,r1,r1,c4 @ ditto | ||
|
||
@ normal | ||
mrrc p0,#1,r1,r2,c4 @ predictable | ||
mrrc2 p0,#1,r1,r2,c4 @ ditto | ||
mcrr p0,#1,r1,r2,c4 @ ditto | ||
mcrr2 p0,#1,r1,r2,c4 @ ditto | ||
mcrr p0,#1,r1,r1,c4 @ ditto | ||
mcrr2 p0,#1,r1,r1,c4 @ ditto |