diff options
author | Jan Beulich <jbeulich@novell.com> | 2005-09-29 07:00:54 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2005-09-29 07:00:54 +0000 |
commit | ef0241e727d448bf82983b97aa4c2dbe6b66c0d4 (patch) | |
tree | c12875f7d5b4c2cfa2877601e27fe5a6f81b4743 /gas/testsuite | |
parent | c9c5dcdafcab3311b88e0d23f244c9879b9455b6 (diff) | |
download | gdb-ef0241e727d448bf82983b97aa4c2dbe6b66c0d4.zip gdb-ef0241e727d448bf82983b97aa4c2dbe6b66c0d4.tar.gz gdb-ef0241e727d448bf82983b97aa4c2dbe6b66c0d4.tar.bz2 |
gas/
2005-09-29 Jan Beulich <jbeulich@novell.com>
* config/tc-ia64.c (parse_operands): Always parse first operand of
alloc.
gas/testsuite/
2005-09-29 Jan Beulich <jbeulich@novell.com>
* gas/ia64/alloc.[sl]: New.
* gas/ia64/ia64.exp: Run new test.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/ia64/alloc.l | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/ia64/alloc.s | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/ia64/ia64.exp | 1 |
4 files changed, 31 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 13be273..9e69088 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-09-29 Jan Beulich <jbeulich@novell.com> + + * gas/ia64/alloc.[sl]: New. + * gas/ia64/ia64.exp: Run new test. + 2005-09-28 Jan Beulich <jbeulich@novell.com> * gas/i386/x86-64-stack.s, gas/i386/x86-64-stack.d, diff --git a/gas/testsuite/gas/ia64/alloc.l b/gas/testsuite/gas/ia64/alloc.l new file mode 100644 index 0000000..42a866a --- /dev/null +++ b/gas/testsuite/gas/ia64/alloc.l @@ -0,0 +1,11 @@ +# Currently in the error messages the operand numbers for the constants +# aren't correct, which is why the patterns only check for ranges. +.*: Assembler messages: +.*:7: Error: Operand [345] of .alloc. should be .* +.*:8: Error: Operand [345] of .alloc. should be .* +.*:9: Error: Operand [345] of .alloc. should be .* +.*:10: Error: Operand [56] of .alloc. should be .* +.*:11: Error: Operand [234] of .alloc. should be .* +.*:12: Error: Operand [234] of .alloc. should be .* +.*:13: Error: Operand [234] of .alloc. should be .* +.*:14: Error: Operand [45] of .alloc. should be .* diff --git a/gas/testsuite/gas/ia64/alloc.s b/gas/testsuite/gas/ia64/alloc.s new file mode 100644 index 0000000..0fcdb84 --- /dev/null +++ b/gas/testsuite/gas/ia64/alloc.s @@ -0,0 +1,14 @@ +// Make sure error messages on 'alloc' don't needlessly refer to operand 1 +// (which gets parsed late) when only one of the other operands is wrong. + + .text + +alloc: + alloc r2 = ar.pfs, x, 0, 0, 0 + alloc r2 = ar.pfs, 0, x, 0, 0 + alloc r2 = ar.pfs, 0, 0, x, 0 + alloc r2 = ar.pfs, 0, 0, 0, x + alloc r3 = x, 0, 0, 0 + alloc r3 = 0, x, 0, 0 + alloc r3 = 0, 0, x, 0 + alloc r3 = 0, 0, 0, x diff --git a/gas/testsuite/gas/ia64/ia64.exp b/gas/testsuite/gas/ia64/ia64.exp index 8b4b999..5ecdff3 100644 --- a/gas/testsuite/gas/ia64/ia64.exp +++ b/gas/testsuite/gas/ia64/ia64.exp @@ -76,6 +76,7 @@ if [istarget "ia64-*"] then { run_dump_test "group-2" } + run_list_test "alloc" "" run_dump_test "bundling" run_list_test "label" "" run_list_test "last" "" |