fix PR4963: folding insertvalue would sometimes turn a packed struct into
[llvm/avr.git] / test / MC / AsmParser / x86_operands.s
blob433c9bf7729e1425a270567835d2dcadc848b91c
1 // FIXME: Actually test that we get the expected results.
3 // RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
5 # Immediates
6 # CHECK: addl $1, %eax
7 addl $1, %eax
8 # CHECK: addl $1+2, %eax
9 addl $(1+2), %eax
10 # CHECK: addl $a, %eax
11 addl $a, %eax
12 # CHECK: addl $1+2, %eax
13 addl $1 + 2, %eax
15 # Disambiguation
17 # FIXME: Add back when we can match this.
18 #addl $1, 4+4
19 # FIXME: Add back when we can match this.
20 #addl $1, (4+4)
21 # CHECK: addl $1, 4+4(%eax)
22 addl $1, 4+4(%eax)
23 # CHECK: addl $1, 4+4(%eax)
24 addl $1, (4+4)(%eax)
25 # CHECK: addl $1, 8(%eax)
26 addl $1, 8(%eax)
27 # CHECK: addl $1, 0(%eax)
28 addl $1, (%eax)
29 # CHECK: addl $1, 4+4(,%eax)
30 addl $1, (4+4)(,%eax)
32 # Indirect Memory Operands
33 # CHECK: addl $1, 1(%eax)
34 addl $1, 1(%eax)
35 # CHECK: addl $1, 1(%eax,%ebx)
36 addl $1, 1(%eax,%ebx)
37 # CHECK: addl $1, 1(%eax,%ebx)
38 addl $1, 1(%eax,%ebx,)
39 # CHECK: addl $1, 1(%eax,%ebx,4)
40 addl $1, 1(%eax,%ebx,4)
41 # CHECK: addl $1, 1(,%ebx)
42 addl $1, 1(,%ebx)
43 # CHECK: addl $1, 1(,%ebx)
44 addl $1, 1(,%ebx,)
45 # CHECK: addl $1, 1(,%ebx,4)
46 addl $1, 1(,%ebx,4)
47 # CHECK: addl $1, 1(,%ebx,4)
48 addl $1, 1(,%ebx,(2+2))
50 # '*'
51 # CHECK: call a
52 call a
53 # CHECK: call *%eax
54 call *%eax
55 # CHECK: call *4(%eax)
56 call *4(%eax)