Add support for & | << >> ~ arithmetic operators in Intel mode
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / intel.s
index 0aaeb9e4c1a7fbfbe51e8f39f2a2e40d911c6e30..b713369266fa55ef388c844b20a17bd711633f8c 100644 (file)
@@ -576,7 +576,6 @@ short_foo:
 bar:
  call  gs_foo
  call  short_foo
- lea   eax, .LC0@GOTOFF[ebx]
  fstp   QWORD PTR [eax+edx*8]
  mov   ecx, OFFSET FLAT:ss
  mov   BYTE PTR [esi+edx], al
@@ -616,6 +615,14 @@ rot5:
  jmp   [eax]
  jmp   [bar]
  jmp   bar
- nop
- nop
- nop
+
+       # Check arithmetic operators
+       mov     %eax,(( 17 ) + 1) 
+       and     %eax,~(1 << ( 18 )) 
+       and     %eax,0xFFFBFFFF
+       mov     %al, (( 0x4711  ) & 0xff) 
+       mov     %al, 0x11
+       mov     %bl, ((( 0x4711  ) >> 8) & 0xff) 
+       mov     %bl, 0x47
+       
+ .p2align 4,0
This page took 0.026239 seconds and 4 git commands to generate.