diff options
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/equ.d | 26 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/equ.e | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/equ.s | 37 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/intel.e | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/intel.s | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/intelbad.l | 6 |
8 files changed, 78 insertions, 5 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 74396a3..0d29752 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2005-10-26 Jan Beulich <jbeulich@novell.com> + + * gas/i386/intel.s: Replace register used in offset expression. + * gas/i386/intel.e: Adjust. + * gas/i386/intelbad.l: Adjust. + * gas/i386/equ.[sed]: New. + * gas/i386/i386.exp: Run new test. + 2005-10-26 Hans-Peter Nilsson <hp@bitrange.com> * gas/z80/z80.exp: Fix misplaced-open-brace typo. diff --git a/gas/testsuite/gas/i386/equ.d b/gas/testsuite/gas/i386/equ.d new file mode 100644 index 0000000..0f294e8 --- /dev/null +++ b/gas/testsuite/gas/i386/equ.d @@ -0,0 +1,26 @@ +#objdump: -drw +#name: i386 equates +#stderr: equ.e + +.*: +file format .* + +Disassembly of section .text: + +0+000 <_start>: +[ 0-9a-f]+:[ 0-9a-f]+mov[ ]+\$0xffffffff,%eax +[ 0-9a-f]+:[ 0-9a-f]+mov[ ]+0xffffffff,%eax +[ 0-9a-f]+:[ 0-9a-f]+mov[ ]+\$0x0,%eax[ 0-9a-f]+:[ a-zA-Z0-9_]+xtrn +[ 0-9a-f]+:[ 0-9a-f]+mov[ ]+0x0,%eax[ 0-9a-f]+:[ a-zA-Z0-9_]+xtrn +[ 0-9a-f]+:[ 0-9a-f]+test[ ]+%ecx,%ecx +[ 0-9a-f]+:[ 0-9a-f]+mov[ ]+%fs:\(%ecx,%ecx,4\),%ecx +[ 0-9a-f]+:[ 0-9a-f]+fadd[ ]+%st\(1\),%st +[ 0-9a-f]+:[ 0-9a-f]+mov[ ]+\$0xfffffffe,%eax +[ 0-9a-f]+:[ 0-9a-f]+mov[ ]+0xfffffffe,%eax +[ 0-9a-f]+:[ 0-9a-f]+mov[ ]+\$0x0,%eax[ 0-9a-f]+:[ a-zA-Z0-9_]+xtrn +[ 0-9a-f]+:[ 0-9a-f]+mov[ ]+0x0,%eax[ 0-9a-f]+:[ a-zA-Z0-9_]+xtrn +[ 0-9a-f]+:[ 0-9a-f]+test[ ]+%edx,%edx +[ 0-9a-f]+:[ 0-9a-f]+mov[ ]+%gs:\(%edx,%edx,8\),%edx +[ 0-9a-f]+:[ 0-9a-f]+mov[ ]+%gs:\(%edx,%edx,8\),%edx +[ 0-9a-f]+:[ 0-9a-f]+fadd[ ]+%st\(1\),%st +[ 0-9a-f]+:[ 0-9a-f]+fadd[ ]+%st\(7\),%st +pass diff --git a/gas/testsuite/gas/i386/equ.e b/gas/testsuite/gas/i386/equ.e new file mode 100644 index 0000000..b91d71c --- /dev/null +++ b/gas/testsuite/gas/i386/equ.e @@ -0,0 +1,2 @@ +.*: Assembler messages: +.*:23: Warning: Treating .* as memory reference diff --git a/gas/testsuite/gas/i386/equ.s b/gas/testsuite/gas/i386/equ.s new file mode 100644 index 0000000..d2e4d1c --- /dev/null +++ b/gas/testsuite/gas/i386/equ.s @@ -0,0 +1,37 @@ + .text +_start: + + .att_syntax prefix + .equ r, -1 + .equ s, -1 + movl $r, %eax + movl (r), %eax + .equ r, xtrn; .global r # temporary (hopefully) + movl $r, %eax + movl r, %eax + .equ r, %ecx + .equ s, %fs + testl r, r + movl s:(r,r,4), r + .equ x, %st(1) + fadd x + + .intel_syntax noprefix + .equ r, -2 + .equ s, -2 + mov eax, r + mov eax, [r] + .equ r, xtrn + mov eax, offset r + mov eax, [r] + .equ r, edx + .equ s, gs + test r, r + mov r, s:[r+r*8] + mov r, s:[8*r+r] + fadd x + .equ x, st(7) + fadd x + + .equ r, -3 + .equ s, -3 diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index 0c32a48..face824 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -63,6 +63,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "vmx" run_dump_test "suffix" run_dump_test "immed32" + run_dump_test "equ" if {![istarget "*-*-aix*"] && (![is_elf_format] || [istarget "*-*-linux*"] diff --git a/gas/testsuite/gas/i386/intel.e b/gas/testsuite/gas/i386/intel.e index b56da1a..9a38e09 100644 --- a/gas/testsuite/gas/i386/intel.e +++ b/gas/testsuite/gas/i386/intel.e @@ -5,4 +5,3 @@ .*:157: Warning: Treating .\[0x90909090\]. as memory reference .*:492: Warning: Treating .\[0x90909090\]. as memory reference .*:493: Warning: Treating .\[0x90909090\]. as memory reference -.*:580: Warning: Using register names in OFFSET expressions is deprecated diff --git a/gas/testsuite/gas/i386/intel.s b/gas/testsuite/gas/i386/intel.s index a262cac..464f4b6 100644 --- a/gas/testsuite/gas/i386/intel.s +++ b/gas/testsuite/gas/i386/intel.s @@ -577,7 +577,7 @@ bar: call gs_foo call short_foo fstp QWORD PTR [eax+edx*8] - mov ecx, OFFSET FLAT:ss + mov ecx, OFFSET FLAT:xyz mov BYTE PTR [esi+edx], al mov BYTE PTR [edx+esi], al mov BYTE PTR [edx*2+esi], al diff --git a/gas/testsuite/gas/i386/intelbad.l b/gas/testsuite/gas/i386/intelbad.l index 5eaa5d1..f8fbe73 100644 --- a/gas/testsuite/gas/i386/intelbad.l +++ b/gas/testsuite/gas/i386/intelbad.l @@ -101,9 +101,9 @@ .*:131: Error: .* .*:132: Error: .* .*:133: Error: .* -.*:135: Warning: .* -.*:136: Warning: .* -.*:137: Warning: .* +.*:135: Error: .* +.*:136: Error: .* +.*:137: Error: .* .*:138: Warning: .* .*:139: Warning: .* .*:141: Error: .* |