merge from gcc
[external/binutils.git] / gas / testsuite / gas / i386 / equ.s
index d2e4d1c..94ec81d 100644 (file)
@@ -6,7 +6,7 @@ _start:
  .equ s, -1
        movl    $r, %eax
        movl    (r), %eax
- .equ r, xtrn; .global r # temporary (hopefully)
+ .equ r, xtrn
        movl    $r, %eax
        movl    r, %eax
  .equ r, %ecx
@@ -16,11 +16,18 @@ _start:
  .equ x, %st(1)
        fadd    x
 
+ .if r <> %ecx
+ .err
+ .endif
+ .if r == s
+ .err
+ .endif
+
  .intel_syntax noprefix
  .equ r, -2
  .equ s, -2
        mov     eax, r
-       mov     eax, [r]
+       mov     eax, FLAT:[r]
  .equ r, xtrn
        mov     eax, offset r
        mov     eax, [r]
@@ -33,5 +40,12 @@ _start:
  .equ x, st(7)
        fadd    x
 
+ .if s <> gs
+ .err
+ .endif
+ .if s == x
+ .err
+ .endif
+
  .equ r, -3
  .equ s, -3