2010-02-13 00:49:29 +00:00
|
|
|
// RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck %s
|
2010-02-12 01:06:22 +00:00
|
|
|
|
2010-05-20 01:35:50 +00:00
|
|
|
pause
|
|
|
|
// CHECK: pause
|
|
|
|
// CHECK: encoding: [0xf3,0x90]
|
2010-05-20 01:23:41 +00:00
|
|
|
sfence
|
|
|
|
// CHECK: sfence
|
|
|
|
// CHECK: encoding: [0x0f,0xae,0xf8]
|
2010-02-12 01:06:22 +00:00
|
|
|
lfence
|
|
|
|
// CHECK: lfence
|
|
|
|
// CHECK: encoding: [0x0f,0xae,0xe8]
|
|
|
|
mfence
|
|
|
|
// CHECK: mfence
|
|
|
|
// CHECK: encoding: [0x0f,0xae,0xf0]
|
|
|
|
monitor
|
|
|
|
// CHECK: monitor
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xc8]
|
|
|
|
mwait
|
|
|
|
// CHECK: mwait
|
2010-02-13 00:41:14 +00:00
|
|
|
// CHECK: encoding: [0x0f,0x01,0xc9]
|
|
|
|
|
|
|
|
vmcall
|
|
|
|
// CHECK: vmcall
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xc1]
|
|
|
|
vmlaunch
|
|
|
|
// CHECK: vmlaunch
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xc2]
|
|
|
|
vmresume
|
|
|
|
// CHECK: vmresume
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xc3]
|
|
|
|
vmxoff
|
|
|
|
// CHECK: vmxoff
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xc4]
|
|
|
|
swapgs
|
|
|
|
// CHECK: swapgs
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xf8]
|
2010-02-13 01:28:07 +00:00
|
|
|
|
2010-02-13 03:42:24 +00:00
|
|
|
rdtscp
|
|
|
|
// CHECK: rdtscp
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xf9]
|
|
|
|
|
|
|
|
|
2010-02-13 01:28:07 +00:00
|
|
|
// CHECK: movl %eax, 16(%ebp) # encoding: [0x89,0x45,0x10]
|
|
|
|
movl %eax, 16(%ebp)
|
|
|
|
// CHECK: movl %eax, -16(%ebp) # encoding: [0x89,0x45,0xf0]
|
|
|
|
movl %eax, -16(%ebp)
|
2010-03-08 21:10:36 +00:00
|
|
|
|
|
|
|
// CHECK: testb %bl, %cl # encoding: [0x84,0xcb]
|
|
|
|
testb %bl, %cl
|
2010-03-09 22:50:40 +00:00
|
|
|
|
|
|
|
// CHECK: cmpl %eax, %ebx # encoding: [0x39,0xc3]
|
|
|
|
cmpl %eax, %ebx
|
2010-03-09 22:50:46 +00:00
|
|
|
|
|
|
|
// CHECK: addw %ax, %ax # encoding: [0x66,0x01,0xc0]
|
|
|
|
addw %ax, %ax
|
2010-03-13 00:47:29 +00:00
|
|
|
|
|
|
|
// CHECK: shrl %eax # encoding: [0xd1,0xe8]
|
|
|
|
shrl $1, %eax
|
2010-05-12 22:48:24 +00:00
|
|
|
|
|
|
|
// moffset forms of moves, rdar://7947184
|
|
|
|
movb 0, %al // CHECK: movb 0, %al # encoding: [0xa0,A,A,A,A]
|
|
|
|
movw 0, %ax // CHECK: movw 0, %ax # encoding: [0x66,0xa1,A,A,A,A]
|
|
|
|
movl 0, %eax // CHECK: movl 0, %eax # encoding: [0xa1,A,A,A,A]
|
|
|
|
|
2010-05-14 19:16:02 +00:00
|
|
|
// rdar://7973775
|
|
|
|
into
|
|
|
|
// CHECK: into
|
|
|
|
// CHECK: encoding: [0xce]
|
|
|
|
int3
|
|
|
|
// CHECK: int3
|
|
|
|
// CHECK: encoding: [0xcc]
|
|
|
|
int $4
|
|
|
|
// CHECK: int $4
|
|
|
|
// CHECK: encoding: [0xcd,0x04]
|
|
|
|
int $255
|
|
|
|
// CHECK: int $255
|
|
|
|
// CHECK: encoding: [0xcd,0xff]
|