1# RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s --check-prefixes=ATT 2# RUN: llvm-mc --disassemble %s -triple=x86_64 -x86-asm-syntax=intel --output-asm-variant=1 | FileCheck %s --check-prefixes=INTEL 3 4# ATT: aaddq %r9, 268435456(%rbp,%r14,8) 5# INTEL: aadd qword ptr [rbp + 8*r14 + 268435456], r9 60x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10 7 8# ATT: aaddq %r9, 291(%r8,%rax,4) 9# INTEL: aadd qword ptr [r8 + 4*rax + 291], r9 100x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00 11 12# ATT: aaddq %r9, (%rip) 13# INTEL: aadd qword ptr [rip], r9 140x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00 15 16# ATT: aaddq %r9, -512(,%rbp,2) 17# INTEL: aadd qword ptr [2*rbp - 512], r9 180x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff 19 20# ATT: aaddq %r9, 2032(%rcx) 21# INTEL: aadd qword ptr [rcx + 2032], r9 220x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00 23 24# ATT: aaddq %r9, -2048(%rdx) 25# INTEL: aadd qword ptr [rdx - 2048], r9 260x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff 27 28# ATT: aaddl %ebx, 268435456(%esp,%esi,8) 29# INTEL: aadd dword ptr [esp + 8*esi + 268435456], ebx 300x67,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10 31 32# ATT: aaddl %ebx, 291(%edi,%eax,4) 33# INTEL: aadd dword ptr [edi + 4*eax + 291], ebx 340x67,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00 35 36# ATT: aaddl %ebx, (%eax) 37# INTEL: aadd dword ptr [eax], ebx 380x67,0x0f,0x38,0xfc,0x18 39 40# ATT: aaddl %ebx, -512(,%ebp,2) 41# INTEL: aadd dword ptr [2*ebp - 512], ebx 420x67,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff 43 44# ATT: aaddl %ebx, 2032(%ecx) 45# INTEL: aadd dword ptr [ecx + 2032], ebx 460x67,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00 47 48# ATT: aaddl %ebx, -2048(%edx) 49# INTEL: aadd dword ptr [edx - 2048], ebx 500x67,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff 51 52# ATT: aandq %r9, 268435456(%rbp,%r14,8) 53# INTEL: aand qword ptr [rbp + 8*r14 + 268435456], r9 540x66,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10 55 56# ATT: aandq %r9, 291(%r8,%rax,4) 57# INTEL: aand qword ptr [r8 + 4*rax + 291], r9 580x66,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00 59 60# ATT: aandq %r9, (%rip) 61# INTEL: aand qword ptr [rip], r9 620x66,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00 63 64# ATT: aandq %r9, -512(,%rbp,2) 65# INTEL: aand qword ptr [2*rbp - 512], r9 660x66,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff 67 68# ATT: aandq %r9, 2032(%rcx) 69# INTEL: aand qword ptr [rcx + 2032], r9 700x66,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00 71 72# ATT: aandq %r9, -2048(%rdx) 73# INTEL: aand qword ptr [rdx - 2048], r9 740x66,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff 75 76# ATT: aandl %ebx, 268435456(%esp,%esi,8) 77# INTEL: aand dword ptr [esp + 8*esi + 268435456], ebx 780x67,0x66,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10 79 80# ATT: aandl %ebx, 291(%edi,%eax,4) 81# INTEL: aand dword ptr [edi + 4*eax + 291], ebx 820x67,0x66,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00 83 84# ATT: aandl %ebx, (%eax) 85# INTEL: aand dword ptr [eax], ebx 860x67,0x66,0x0f,0x38,0xfc,0x18 87 88# ATT: aandl %ebx, -512(,%ebp,2) 89# INTEL: aand dword ptr [2*ebp - 512], ebx 900x67,0x66,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff 91 92# ATT: aandl %ebx, 2032(%ecx) 93# INTEL: aand dword ptr [ecx + 2032], ebx 940x67,0x66,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00 95 96# ATT: aandl %ebx, -2048(%edx) 97# INTEL: aand dword ptr [edx - 2048], ebx 980x67,0x66,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff 99 100# ATT: aorq %r9, 268435456(%rbp,%r14,8) 101# INTEL: aor qword ptr [rbp + 8*r14 + 268435456], r9 1020xf2,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10 103 104# ATT: aorq %r9, 291(%r8,%rax,4) 105# INTEL: aor qword ptr [r8 + 4*rax + 291], r9 1060xf2,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00 107 108# ATT: aorq %r9, (%rip) 109# INTEL: aor qword ptr [rip], r9 1100xf2,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00 111 112# ATT: aorq %r9, -512(,%rbp,2) 113# INTEL: aor qword ptr [2*rbp - 512], r9 1140xf2,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff 115 116# ATT: aorq %r9, 2032(%rcx) 117# INTEL: aor qword ptr [rcx + 2032], r9 1180xf2,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00 119 120# ATT: aorq %r9, -2048(%rdx) 121# INTEL: aor qword ptr [rdx - 2048], r9 1220xf2,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff 123 124# ATT: aorl %ebx, 268435456(%esp,%esi,8) 125# INTEL: aor dword ptr [esp + 8*esi + 268435456], ebx 1260x67,0xf2,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10 127 128# ATT: aorl %ebx, 291(%edi,%eax,4) 129# INTEL: aor dword ptr [edi + 4*eax + 291], ebx 1300x67,0xf2,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00 131 132# ATT: aorl %ebx, (%eax) 133# INTEL: aor dword ptr [eax], ebx 1340x67,0xf2,0x0f,0x38,0xfc,0x18 135 136# ATT: aorl %ebx, -512(,%ebp,2) 137# INTEL: aor dword ptr [2*ebp - 512], ebx 1380x67,0xf2,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff 139 140# ATT: aorl %ebx, 2032(%ecx) 141# INTEL: aor dword ptr [ecx + 2032], ebx 1420x67,0xf2,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00 143 144# ATT: aorl %ebx, -2048(%edx) 145# INTEL: aor dword ptr [edx - 2048], ebx 1460x67,0xf2,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff 147 148# ATT: axorq %r9, 268435456(%rbp,%r14,8) 149# INTEL: axor qword ptr [rbp + 8*r14 + 268435456], r9 1500xf3,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10 151 152# ATT: axorq %r9, 291(%r8,%rax,4) 153# INTEL: axor qword ptr [r8 + 4*rax + 291], r9 1540xf3,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00 155 156# ATT: axorq %r9, (%rip) 157# INTEL: axor qword ptr [rip], r9 1580xf3,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00 159 160# ATT: axorq %r9, -512(,%rbp,2) 161# INTEL: axor qword ptr [2*rbp - 512], r9 1620xf3,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff 163 164# ATT: axorq %r9, 2032(%rcx) 165# INTEL: axor qword ptr [rcx + 2032], r9 1660xf3,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00 167 168# ATT: axorq %r9, -2048(%rdx) 169# INTEL: axor qword ptr [rdx - 2048], r9 1700xf3,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff 171 172# ATT: axorl %ebx, 268435456(%esp,%esi,8) 173# INTEL: axor dword ptr [esp + 8*esi + 268435456], ebx 1740x67,0xf3,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10 175 176# ATT: axorl %ebx, 291(%edi,%eax,4) 177# INTEL: axor dword ptr [edi + 4*eax + 291], ebx 1780x67,0xf3,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00 179 180# ATT: axorl %ebx, (%eax) 181# INTEL: axor dword ptr [eax], ebx 1820x67,0xf3,0x0f,0x38,0xfc,0x18 183 184# ATT: axorl %ebx, -512(,%ebp,2) 185# INTEL: axor dword ptr [2*ebp - 512], ebx 1860x67,0xf3,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff 187 188# ATT: axorl %ebx, 2032(%ecx) 189# INTEL: axor dword ptr [ecx + 2032], ebx 1900x67,0xf3,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00 191 192# ATT: axorl %ebx, -2048(%edx) 193# INTEL: axor dword ptr [edx - 2048], ebx 1940x67,0xf3,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff 195