Add support for & | << >> ~ arithmetic operators in Intel mode
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / intel.s
index 2a4afb27cbb40a0b53177b944b111fb4585ade31..b713369266fa55ef388c844b20a17bd711633f8c 100644 (file)
@@ -615,4 +615,14 @@ rot5:
  jmp   [eax]
  jmp   [bar]
  jmp   bar
+
+       # 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.024859 seconds and 4 git commands to generate.