x86: improve handling of insns with ambiguous operand sizes
[deliverable/binutils-gdb.git] / gas / testsuite / gas / i386 / lock-1.s
CommitLineData
c32fa91d
L
1# Lockable Instructions
2
3 .text
4foo:
c1ba0266 5 lock add %eax, (%ebx)
c006a730 6 lock addl $0x64, (%ebx)
c1ba0266 7 lock adc %eax, (%ebx)
c006a730 8 lock adcl $0x64, (%ebx)
c1ba0266 9 lock and %eax, (%ebx)
c006a730 10 lock andl $0x64, (%ebx)
c32fa91d 11 lock btc %eax, (%ebx)
c006a730 12 lock btcl $0x64, (%ebx)
c32fa91d 13 lock btr %eax, (%ebx)
c006a730 14 lock btrl $0x64, (%ebx)
c32fa91d 15 lock bts %eax, (%ebx)
c006a730 16 lock btsl $0x64, (%ebx)
c32fa91d
L
17 lock cmpxchg %eax,(%ebx)
18 lock cmpxchg8b (%ebx)
19 lock decl (%ebx)
20 lock incl (%ebx)
21 lock negl (%ebx)
22 lock notl (%ebx)
c1ba0266 23 lock or %eax, (%ebx)
c006a730 24 lock orl $0x64, (%ebx)
c1ba0266 25 lock sbb %eax, (%ebx)
c006a730 26 lock sbbl $0x64, (%ebx)
c1ba0266 27 lock sub %eax, (%ebx)
c006a730 28 lock subl $0x64, (%ebx)
c32fa91d
L
29 lock xadd %eax, (%ebx)
30 lock xchg (%ebx), %eax
31 lock xchg %eax, (%ebx)
c1ba0266 32 lock xor %eax, (%ebx)
c006a730 33 lock xorl $0x64, (%ebx)
c32fa91d
L
34
35 .intel_syntax noprefix
c1ba0266 36 lock add DWORD PTR [ebx],eax
c32fa91d 37 lock add DWORD PTR [ebx],0x64
c1ba0266 38 lock adc DWORD PTR [ebx],eax
c32fa91d 39 lock adc DWORD PTR [ebx],0x64
c1ba0266 40 lock and DWORD PTR [ebx],eax
c32fa91d
L
41 lock and DWORD PTR [ebx],0x64
42 lock btc DWORD PTR [ebx],eax
43 lock btc DWORD PTR [ebx],0x64
44 lock btr DWORD PTR [ebx],eax
45 lock btr DWORD PTR [ebx],0x64
46 lock bts DWORD PTR [ebx],eax
47 lock bts DWORD PTR [ebx],0x64
48 lock cmpxchg DWORD PTR [ebx],eax
49 lock cmpxchg8b QWORD PTR [ebx]
50 lock dec DWORD PTR [ebx]
51 lock inc DWORD PTR [ebx]
52 lock neg DWORD PTR [ebx]
53 lock not DWORD PTR [ebx]
c1ba0266 54 lock or DWORD PTR [ebx],eax
c32fa91d 55 lock or DWORD PTR [ebx],0x64
c1ba0266 56 lock sbb DWORD PTR [ebx],eax
c32fa91d 57 lock sbb DWORD PTR [ebx],0x64
c1ba0266 58 lock sub DWORD PTR [ebx],eax
c32fa91d
L
59 lock sub DWORD PTR [ebx],0x64
60 lock xadd DWORD PTR [ebx],eax
61 lock xchg DWORD PTR [ebx],eax
62 lock xchg DWORD PTR [ebx],eax
c1ba0266 63 lock xor DWORD PTR [ebx],eax
c32fa91d 64 lock xor DWORD PTR [ebx],0x64
This page took 0.499771 seconds and 4 git commands to generate.