diff options
author | Will Newton <willnewton@sourceware.org> | 2013-04-26 09:40:18 +0000 |
---|---|---|
committer | Will Newton <willnewton@sourceware.org> | 2013-04-26 09:40:18 +0000 |
commit | 0f7325f98d27beba4812bbf5d6e738eba08b6a72 (patch) | |
tree | 04f50e54df43932671a1b88be065c7abc43a2524 /gas | |
parent | ed5acf27f7f97c400dada8be1267e96ba3c3e5de (diff) | |
download | gdb-0f7325f98d27beba4812bbf5d6e738eba08b6a72.zip gdb-0f7325f98d27beba4812bbf5d6e738eba08b6a72.tar.gz gdb-0f7325f98d27beba4812bbf5d6e738eba08b6a72.tar.bz2 |
Add missing test files from 2013-03-21 commit.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/gas/arm/thumb2_str-bad.d | 3 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/thumb2_str-bad.l | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/thumb2_str-bad.s | 15 |
3 files changed, 22 insertions, 0 deletions
diff --git a/gas/testsuite/gas/arm/thumb2_str-bad.d b/gas/testsuite/gas/arm/thumb2_str-bad.d new file mode 100644 index 0000000..6041643 --- /dev/null +++ b/gas/testsuite/gas/arm/thumb2_str-bad.d @@ -0,0 +1,3 @@ +#name: Invalid Thumb-2 str instructions +#as: -march=armv6kt2 +#error-output: thumb2_str-bad.l diff --git a/gas/testsuite/gas/arm/thumb2_str-bad.l b/gas/testsuite/gas/arm/thumb2_str-bad.l new file mode 100644 index 0000000..5ee0597 --- /dev/null +++ b/gas/testsuite/gas/arm/thumb2_str-bad.l @@ -0,0 +1,4 @@ +[^:]*: Assembler messages: +[^:]*:8: Error: cannot use register index with PC-relative addressing -- `str r0,\[pc,4\]' +[^:]*:9: Error: cannot use register index with PC-relative addressing -- `str r0,d' +[^:]*:10: Error: r15 not allowed here -- `str pc,\[r0\]' diff --git a/gas/testsuite/gas/arm/thumb2_str-bad.s b/gas/testsuite/gas/arm/thumb2_str-bad.s new file mode 100644 index 0000000..d5c37a5 --- /dev/null +++ b/gas/testsuite/gas/arm/thumb2_str-bad.s @@ -0,0 +1,15 @@ + .syntax unified + .text + .align 2 + .global thumb2_str + .thumb + .thumb_func +thumb2_str: + str r0, [pc, 4] + str r0, d + str pc, [r0] + + .space 4 + .align +d: + .long 0 |