[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / tools / llvm-ml / dot_operator.asm
blob37f753eeba51397ea7e8db8927738f9cec6195ec
1 ; RUN: llvm-ml -m64 -filetype=s %s /Fo - | FileCheck %s
3 .data
5 FOO STRUCT
6 a BYTE ?
7 b BYTE ?
8 c BYTE ?
9 d BYTE ?
10 FOO ENDS
12 BAR STRUCT
13 e WORD ?
14 f WORD ?
15 BAR ENDS
17 var FOO <>
19 .code
21 t1:
22 mov al, var.a
23 mov al, var. b
24 mov al, var .c
25 mov al, var . d
27 ; CHECK-LABEL: t1:
28 ; CHECK: mov al, byte ptr [rip + var]
29 ; CHECK: mov al, byte ptr [rip + var+1]
30 ; CHECK: mov al, byte ptr [rip + var+2]
31 ; CHECK: mov al, byte ptr [rip + var+3]
33 t2:
34 mov eax, FOO.a
35 mov ax, FOO. b
36 mov al, FOO .c
37 mov eax, FOO . d
39 ; CHECK-LABEL: t2:
40 ; CHECK: mov eax, 0
41 ; CHECK: mov ax, 1
42 ; CHECK: mov al, 2
43 ; CHECK: mov eax, 3
45 t3:
46 mov al, BYTE PTR var[FOO.c]
48 ; CHECK-LABEL: t3:
49 ; CHECK: mov al, byte ptr [rip + var+2]
51 t4:
52 mov ax, var.BAR.f
53 mov ax, var .BAR.f
54 mov ax, var. BAR.f
55 mov ax, var.BAR .f
56 mov ax, var.BAR. f
57 mov ax, var . BAR . f
59 ; CHECK-LABEL: t4:
60 ; CHECK: mov ax, word ptr [rip + var+2]
61 ; CHECK: mov ax, word ptr [rip + var+2]
62 ; CHECK: mov ax, word ptr [rip + var+2]
63 ; CHECK: mov ax, word ptr [rip + var+2]
64 ; CHECK: mov ax, word ptr [rip + var+2]
65 ; CHECK: mov ax, word ptr [rip + var+2]
67 END