194 lines · plain
1// RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=intel -output-asm-variant=1 --show-encoding %s | FileCheck %s2 3// CHECK: aadd qword ptr [rbp + 8*r14 + 268435456], r94// CHECK: encoding: [0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]5 aadd qword ptr [rbp + 8*r14 + 268435456], r96 7// CHECK: aadd qword ptr [r8 + 4*rax + 291], r98// CHECK: encoding: [0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]9 aadd qword ptr [r8 + 4*rax + 291], r910 11// CHECK: aadd qword ptr [rip], r912// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]13 aadd qword ptr [rip], r914 15// CHECK: aadd qword ptr [2*rbp - 512], r916// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]17 aadd qword ptr [2*rbp - 512], r918 19// CHECK: aadd qword ptr [rcx + 2032], r920// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]21 aadd qword ptr [rcx + 2032], r922 23// CHECK: aadd qword ptr [rdx - 2048], r924// CHECK: encoding: [0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]25 aadd qword ptr [rdx - 2048], r926 27// CHECK: aadd dword ptr [esp + 8*esi + 268435456], ebx28// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]29 aadd dword ptr [esp + 8*esi + 268435456], ebx30 31// CHECK: aadd dword ptr [edi + 4*eax + 291], ebx32// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]33 aadd dword ptr [edi + 4*eax + 291], ebx34 35// CHECK: aadd dword ptr [eax], ebx36// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x18]37 aadd dword ptr [eax], ebx38 39// CHECK: aadd dword ptr [2*ebp - 512], ebx40// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]41 aadd dword ptr [2*ebp - 512], ebx42 43// CHECK: aadd dword ptr [ecx + 2032], ebx44// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]45 aadd dword ptr [ecx + 2032], ebx46 47// CHECK: aadd dword ptr [edx - 2048], ebx48// CHECK: encoding: [0x67,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]49 aadd dword ptr [edx - 2048], ebx50 51// CHECK: aand qword ptr [rbp + 8*r14 + 268435456], r952// CHECK: encoding: [0x66,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]53 aand qword ptr [rbp + 8*r14 + 268435456], r954 55// CHECK: aand qword ptr [r8 + 4*rax + 291], r956// CHECK: encoding: [0x66,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]57 aand qword ptr [r8 + 4*rax + 291], r958 59// CHECK: aand qword ptr [rip], r960// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]61 aand qword ptr [rip], r962 63// CHECK: aand qword ptr [2*rbp - 512], r964// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]65 aand qword ptr [2*rbp - 512], r966 67// CHECK: aand qword ptr [rcx + 2032], r968// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]69 aand qword ptr [rcx + 2032], r970 71// CHECK: aand qword ptr [rdx - 2048], r972// CHECK: encoding: [0x66,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]73 aand qword ptr [rdx - 2048], r974 75// CHECK: aand dword ptr [esp + 8*esi + 268435456], ebx76// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]77 aand dword ptr [esp + 8*esi + 268435456], ebx78 79// CHECK: aand dword ptr [edi + 4*eax + 291], ebx80// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]81 aand dword ptr [edi + 4*eax + 291], ebx82 83// CHECK: aand dword ptr [eax], ebx84// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x18]85 aand dword ptr [eax], ebx86 87// CHECK: aand dword ptr [2*ebp - 512], ebx88// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]89 aand dword ptr [2*ebp - 512], ebx90 91// CHECK: aand dword ptr [ecx + 2032], ebx92// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]93 aand dword ptr [ecx + 2032], ebx94 95// CHECK: aand dword ptr [edx - 2048], ebx96// CHECK: encoding: [0x67,0x66,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]97 aand dword ptr [edx - 2048], ebx98 99// CHECK: aor qword ptr [rbp + 8*r14 + 268435456], r9100// CHECK: encoding: [0xf2,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]101 aor qword ptr [rbp + 8*r14 + 268435456], r9102 103// CHECK: aor qword ptr [r8 + 4*rax + 291], r9104// CHECK: encoding: [0xf2,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]105 aor qword ptr [r8 + 4*rax + 291], r9106 107// CHECK: aor qword ptr [rip], r9108// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]109 aor qword ptr [rip], r9110 111// CHECK: aor qword ptr [2*rbp - 512], r9112// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]113 aor qword ptr [2*rbp - 512], r9114 115// CHECK: aor qword ptr [rcx + 2032], r9116// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]117 aor qword ptr [rcx + 2032], r9118 119// CHECK: aor qword ptr [rdx - 2048], r9120// CHECK: encoding: [0xf2,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]121 aor qword ptr [rdx - 2048], r9122 123// CHECK: aor dword ptr [esp + 8*esi + 268435456], ebx124// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]125 aor dword ptr [esp + 8*esi + 268435456], ebx126 127// CHECK: aor dword ptr [edi + 4*eax + 291], ebx128// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]129 aor dword ptr [edi + 4*eax + 291], ebx130 131// CHECK: aor dword ptr [eax], ebx132// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x18]133 aor dword ptr [eax], ebx134 135// CHECK: aor dword ptr [2*ebp - 512], ebx136// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]137 aor dword ptr [2*ebp - 512], ebx138 139// CHECK: aor dword ptr [ecx + 2032], ebx140// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]141 aor dword ptr [ecx + 2032], ebx142 143// CHECK: aor dword ptr [edx - 2048], ebx144// CHECK: encoding: [0x67,0xf2,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]145 aor dword ptr [edx - 2048], ebx146 147// CHECK: axor qword ptr [rbp + 8*r14 + 268435456], r9148// CHECK: encoding: [0xf3,0x4e,0x0f,0x38,0xfc,0x8c,0xf5,0x00,0x00,0x00,0x10]149 axor qword ptr [rbp + 8*r14 + 268435456], r9150 151// CHECK: axor qword ptr [r8 + 4*rax + 291], r9152// CHECK: encoding: [0xf3,0x4d,0x0f,0x38,0xfc,0x8c,0x80,0x23,0x01,0x00,0x00]153 axor qword ptr [r8 + 4*rax + 291], r9154 155// CHECK: axor qword ptr [rip], r9156// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x0d,0x00,0x00,0x00,0x00]157 axor qword ptr [rip], r9158 159// CHECK: axor qword ptr [2*rbp - 512], r9160// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x0c,0x6d,0x00,0xfe,0xff,0xff]161 axor qword ptr [2*rbp - 512], r9162 163// CHECK: axor qword ptr [rcx + 2032], r9164// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x89,0xf0,0x07,0x00,0x00]165 axor qword ptr [rcx + 2032], r9166 167// CHECK: axor qword ptr [rdx - 2048], r9168// CHECK: encoding: [0xf3,0x4c,0x0f,0x38,0xfc,0x8a,0x00,0xf8,0xff,0xff]169 axor qword ptr [rdx - 2048], r9170 171// CHECK: axor dword ptr [esp + 8*esi + 268435456], ebx172// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x9c,0xf4,0x00,0x00,0x00,0x10]173 axor dword ptr [esp + 8*esi + 268435456], ebx174 175// CHECK: axor dword ptr [edi + 4*eax + 291], ebx176// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x9c,0x87,0x23,0x01,0x00,0x00]177 axor dword ptr [edi + 4*eax + 291], ebx178 179// CHECK: axor dword ptr [eax], ebx180// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x18]181 axor dword ptr [eax], ebx182 183// CHECK: axor dword ptr [2*ebp - 512], ebx184// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x1c,0x6d,0x00,0xfe,0xff,0xff]185 axor dword ptr [2*ebp - 512], ebx186 187// CHECK: axor dword ptr [ecx + 2032], ebx188// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x99,0xf0,0x07,0x00,0x00]189 axor dword ptr [ecx + 2032], ebx190 191// CHECK: axor dword ptr [edx - 2048], ebx192// CHECK: encoding: [0x67,0xf3,0x0f,0x38,0xfc,0x9a,0x00,0xf8,0xff,0xff]193 axor dword ptr [edx - 2048], ebx194