2012-10-25 07:34:38 +08:00
|
|
|
// RUN: llvm-mc -x86-asm-syntax=intel -triple i386-unknown-unknown --show-encoding %s | FileCheck %s
|
2012-10-25 07:10:28 +08:00
|
|
|
|
|
|
|
mov eax, [ebx].0
|
|
|
|
mov [ebx].4, ecx
|
2012-10-25 07:34:38 +08:00
|
|
|
|
|
|
|
// CHECK: movl (%ebx), %eax
|
|
|
|
// CHECK: encoding: [0x8b,0x03]
|
|
|
|
// CHECK: movl %ecx, 4(%ebx)
|
|
|
|
// CHECK: encoding: [0x89,0x4b,0x04]
|
2012-10-25 07:10:28 +08:00
|
|
|
|
2012-10-30 02:01:54 +08:00
|
|
|
_t21: ## @t21
|
|
|
|
// CHECK: t21
|
|
|
|
mov eax, [4*eax + 4]
|
|
|
|
// CHECK: movl 4(,%eax,4), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x04,0x85,0x04,0x00,0x00,0x00]
|
|
|
|
mov eax, [4*eax][4]
|
|
|
|
// CHECK: movl 4(,%eax,4), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x04,0x85,0x04,0x00,0x00,0x00]
|
|
|
|
|
|
|
|
mov eax, [esi + eax]
|
|
|
|
// CHECK: movl (%esi,%eax), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x04,0x06]
|
|
|
|
mov eax, [esi][eax]
|
|
|
|
// CHECK: movl (%esi,%eax), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x04,0x06]
|
|
|
|
|
|
|
|
mov eax, [esi + 4*eax]
|
|
|
|
// CHECK: movl (%esi,%eax,4), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x04,0x86]
|
|
|
|
mov eax, [esi][4*eax]
|
|
|
|
// CHECK: movl (%esi,%eax,4), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x04,0x86]
|
|
|
|
|
|
|
|
mov eax, [esi + eax + 4]
|
|
|
|
// CHECK: movl 4(%esi,%eax), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x06,0x04]
|
|
|
|
mov eax, [esi][eax + 4]
|
|
|
|
// CHECK: movl 4(%esi,%eax), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x06,0x04]
|
|
|
|
mov eax, [esi + eax][4]
|
|
|
|
// CHECK: movl 4(%esi,%eax), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x06,0x04]
|
|
|
|
mov eax, [esi][eax][4]
|
|
|
|
// CHECK: movl 4(%esi,%eax), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x06,0x04]
|
|
|
|
|
|
|
|
mov eax, [esi + 2*eax + 4]
|
|
|
|
// CHECK: movl 4(%esi,%eax,2), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x46,0x04]
|
|
|
|
mov eax, [esi][2*eax + 4]
|
|
|
|
// CHECK: movl 4(%esi,%eax,2), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x46,0x04]
|
|
|
|
mov eax, [esi + 2*eax][4]
|
|
|
|
// CHECK: movl 4(%esi,%eax,2), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x46,0x04]
|
|
|
|
mov eax, [esi][2*eax][4]
|
|
|
|
// CHECK: movl 4(%esi,%eax,2), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x46,0x04]
|
|
|
|
|
2013-03-28 05:49:56 +08:00
|
|
|
mov eax, 4[esi + 2*eax + 4]
|
|
|
|
// CHECK: movl 8(%esi,%eax,2), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x46,0x08]
|
|
|
|
mov eax, 4[esi][2*eax + 4]
|
|
|
|
// CHECK: movl 8(%esi,%eax,2), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x46,0x08]
|
|
|
|
mov eax, 4[esi + 2*eax][4]
|
|
|
|
// CHECK: movl 8(%esi,%eax,2), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x46,0x08]
|
|
|
|
mov eax, 4[esi][2*eax][4]
|
|
|
|
// CHECK: movl 8(%esi,%eax,2), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x46,0x08]
|
|
|
|
mov eax, 4[esi][2*eax][4][8]
|
|
|
|
// CHECK: movl 16(%esi,%eax,2), %eax
|
|
|
|
// CHECK: # encoding: [0x8b,0x44,0x46,0x10]
|
|
|
|
|
|
|
|
prefetchnta 64[eax]
|
|
|
|
// CHECK: prefetchnta 64(%eax)
|
|
|
|
// CHECK: # encoding: [0x0f,0x18,0x40,0x40]
|
|
|
|
|
2013-02-26 03:06:27 +08:00
|
|
|
pusha
|
|
|
|
// CHECK: pushal
|
|
|
|
// CHECK: # encoding: [0x60]
|
|
|
|
popa
|
|
|
|
// CHECK: popal
|
|
|
|
// CHECK: # encoding: [0x61]
|
|
|
|
pushad
|
|
|
|
// CHECK: pushal
|
|
|
|
// CHECK: # encoding: [0x60]
|
|
|
|
popad
|
|
|
|
// CHECK: popal
|
|
|
|
// CHECK: # encoding: [0x61]
|
|
|
|
|
2014-10-15 05:41:17 +08:00
|
|
|
fwait
|
|
|
|
// CHECK: wait
|
|
|
|
// CHECK: # encoding: [0x9b]
|
|
|
|
|
2012-10-30 02:01:54 +08:00
|
|
|
ret
|