diff options
author | Jason Eckhardt <jle@rice.edu> | 2003-08-05 23:02:50 +0000 |
---|---|---|
committer | Jason Eckhardt <jle@rice.edu> | 2003-08-05 23:02:50 +0000 |
commit | ed9dc3d0d12db6aac58991a91120424c6faf9ccd (patch) | |
tree | d61fd828430d07e69b647c289362bfd7afc81eec /gas | |
parent | 5ea0549d55b3628448ea84809ce3bb54ed6724ba (diff) | |
download | gdb-ed9dc3d0d12db6aac58991a91120424c6faf9ccd.zip gdb-ed9dc3d0d12db6aac58991a91120424c6faf9ccd.tar.gz gdb-ed9dc3d0d12db6aac58991a91120424c6faf9ccd.tar.bz2 |
2003-08-05 Jason Eckhardt <jle@rice.edu>
* gas/i860/dir-intel01.{s,d}: New files.
* gas/i860/dir-intel02.{s,d}: New files.
* gas/i860/dir-intel03-err.{s,l}: New files.
* gas/i860/i860.exp: Execute the above new tests.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/i860/dir-intel01.d | 19 | ||||
-rw-r--r-- | gas/testsuite/gas/i860/dir-intel01.s | 19 | ||||
-rw-r--r-- | gas/testsuite/gas/i860/dir-intel02.d | 15 | ||||
-rw-r--r-- | gas/testsuite/gas/i860/dir-intel02.s | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/i860/dir-intel03-err.l | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/i860/dir-intel03-err.s | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/i860/i860.exp | 3 |
8 files changed, 95 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 29a683d..d4616cc 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2003-08-05 Jason Eckhardt <jle@rice.edu> + + * gas/i860/dir-intel01.{s,d}: New files. + * gas/i860/dir-intel02.{s,d}: New files. + * gas/i860/dir-intel03-err.{s,l}: New files. + * gas/i860/i860.exp: Execute the above new tests. + 2003-08-03 Jason Eckhardt <jle@rice.edu> * gas/i860/*.d: Prefix name with "i860". diff --git a/gas/testsuite/gas/i860/dir-intel01.d b/gas/testsuite/gas/i860/dir-intel01.d new file mode 100644 index 0000000..0951bf3 --- /dev/null +++ b/gas/testsuite/gas/i860/dir-intel01.d @@ -0,0 +1,19 @@ +#as: -mintel-syntax +#objdump: -d +#name: i860 dir-intel01 + +.*: +file format .* + +Disassembly of section \.text: + +00000000 <\.text>: + 0: 00 00 00 a0 shl %r0,%r0,%r0 + 4: 00 00 00 a0 shl %r0,%r0,%r0 + 8: 30 02 22 48 d.fadd.ss %f0,%f1,%f2 + c: 00 00 00 a0 shl %r0,%r0,%r0 + 10: b0 12 64 48 d.fadd.sd %f2,%f3,%f4 + 14: 00 00 00 a0 shl %r0,%r0,%r0 + 18: b0 33 0a 49 d.fadd.dd %f6,%f8,%f10 + 1c: 00 00 00 a0 shl %r0,%r0,%r0 + 20: 00 00 00 a0 shl %r0,%r0,%r0 + 24: 00 00 00 a0 shl %r0,%r0,%r0 diff --git a/gas/testsuite/gas/i860/dir-intel01.s b/gas/testsuite/gas/i860/dir-intel01.s new file mode 100644 index 0000000..21aa685 --- /dev/null +++ b/gas/testsuite/gas/i860/dir-intel01.s @@ -0,0 +1,19 @@ +// Intel assembler directives: +// Test that the .dual and .enddual directives are recognized and +// function (i.e., that the dual bits are set properly). + + .text + + nop + nop + .dual + fadd.ss f0,f1,f2 + nop + fadd.sd f2,f3,f4 + nop + fadd.dd f6,f8,f10 + nop + .enddual + nop + nop + diff --git a/gas/testsuite/gas/i860/dir-intel02.d b/gas/testsuite/gas/i860/dir-intel02.d new file mode 100644 index 0000000..f053967 --- /dev/null +++ b/gas/testsuite/gas/i860/dir-intel02.d @@ -0,0 +1,15 @@ +#as: -mintel-syntax +#objdump: -d +#name: i860 dir-intel02 + +.*: +file format .* + +Disassembly of section \.text: + +00000000 <\.text>: + 0: 34 12 1f ec orh 0x1234,%r0,%r31 + 4: 78 56 f8 e7 or 0x5678,%r31,%r24 + 8: 00 c0 28 91 adds %r24,%r9,%r8 + c: f0 f0 05 ec orh 0xf0f0,%r0,%r5 + 10: 5a 5a b8 e4 or 0x5a5a,%r5,%r24 + 14: 00 c0 28 91 adds %r24,%r9,%r8 diff --git a/gas/testsuite/gas/i860/dir-intel02.s b/gas/testsuite/gas/i860/dir-intel02.s new file mode 100644 index 0000000..a1a1613 --- /dev/null +++ b/gas/testsuite/gas/i860/dir-intel02.s @@ -0,0 +1,13 @@ +// Intel assembler directives: +// Test that the .atmp directive is recognized and functions. + + .text + + .atmp r31 + or 0x12345678,r0,r24 + adds r24,r9,r8 + + .atmp r5 + or 0xf0f05a5a,r0,r24 + adds r24,r9,r8 + diff --git a/gas/testsuite/gas/i860/dir-intel03-err.l b/gas/testsuite/gas/i860/dir-intel03-err.l new file mode 100644 index 0000000..480e1ae --- /dev/null +++ b/gas/testsuite/gas/i860/dir-intel03-err.l @@ -0,0 +1,5 @@ +.*: Assembler messages: +.*:8: Error: Directive .atmp available only with -mintel-syntax option +.*:8: Warning: rest of line ignored; first ignored character is `r' +.*:10: Error: Directive .dual available only with -mintel-syntax option +.*:13: Error: Directive .enddual available only with -mintel-syntax option diff --git a/gas/testsuite/gas/i860/dir-intel03-err.s b/gas/testsuite/gas/i860/dir-intel03-err.s new file mode 100644 index 0000000..b8b0790 --- /dev/null +++ b/gas/testsuite/gas/i860/dir-intel03-err.s @@ -0,0 +1,14 @@ +# Intel assembler directives: +# The .dual, .enddual, and .atmp directives are valid only +# in Intel syntax mode. Check that we issue an error if in +# AT&T/SVR4 mode. + + .text + + .atmp r31 + + .dual + fsub.ss %f22,%f21,%f13 + nop + .enddual + diff --git a/gas/testsuite/gas/i860/i860.exp b/gas/testsuite/gas/i860/i860.exp index d0f7837..601995b 100644 --- a/gas/testsuite/gas/i860/i860.exp +++ b/gas/testsuite/gas/i860/i860.exp @@ -17,6 +17,9 @@ if [istarget i860-*-*] { run_dump_test "bitwise" run_dump_test "branch" run_dump_test "bte" + run_dump_test "dir-intel01" + run_dump_test "dir-intel02" + run_list_test "dir-intel03-err" "" run_dump_test "dual01" run_list_test "dual02-err" "" run_dump_test "dual03" |