2010-09-15 06:45:10 +02:00
|
|
|
// RUN: llvm-mc -triple x86_64-unknown-unknown -show-encoding %s > %t 2> %t.err
|
2010-08-24 21:13:38 +02:00
|
|
|
// RUN: FileCheck < %t %s
|
|
|
|
// RUN: FileCheck --check-prefix=CHECK-STDERR < %t.err %s
|
2009-07-31 05:11:49 +02:00
|
|
|
|
2011-02-18 01:48:11 +01:00
|
|
|
monitor
|
|
|
|
// CHECK: monitor
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xc8]
|
|
|
|
monitor %rax, %rcx, %rdx
|
|
|
|
// CHECK: monitor
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xc8]
|
|
|
|
mwait
|
|
|
|
// CHECK: mwait
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xc9]
|
|
|
|
mwait %rax, %rcx
|
|
|
|
// CHECK: mwait
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xc9]
|
2010-09-30 19:24:05 +02:00
|
|
|
|
|
|
|
// Suffix inference:
|
|
|
|
|
|
|
|
// CHECK: addl $0, %eax
|
|
|
|
add $0, %eax
|
|
|
|
// CHECK: addb $255, %al
|
|
|
|
add $0xFF, %al
|
|
|
|
// CHECK: orq %rax, %rdx
|
|
|
|
or %rax, %rdx
|
|
|
|
// CHECK: shlq $3, %rax
|
|
|
|
shl $3, %rax
|
|
|
|
|
|
|
|
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: subb %al, %al
|
2009-07-31 22:53:16 +02:00
|
|
|
subb %al, %al
|
|
|
|
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: addl $24, %eax
|
2009-07-31 22:53:16 +02:00
|
|
|
addl $24, %eax
|
|
|
|
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: movl %eax, 10(%ebp)
|
2009-07-31 22:53:16 +02:00
|
|
|
movl %eax, 10(%ebp)
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: movl %eax, 10(%ebp,%ebx)
|
2009-07-31 22:53:16 +02:00
|
|
|
movl %eax, 10(%ebp, %ebx)
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: movl %eax, 10(%ebp,%ebx,4)
|
2009-07-31 22:53:16 +02:00
|
|
|
movl %eax, 10(%ebp, %ebx, 4)
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: movl %eax, 10(,%ebx,4)
|
2009-07-31 22:53:16 +02:00
|
|
|
movl %eax, 10(, %ebx, 4)
|
2010-01-30 02:02:48 +01:00
|
|
|
|
|
|
|
// CHECK: movl 0, %eax
|
|
|
|
movl 0, %eax
|
|
|
|
// CHECK: movl $0, %eax
|
|
|
|
movl $0, %eax
|
|
|
|
|
2010-01-22 21:16:37 +01:00
|
|
|
// CHECK: ret
|
|
|
|
ret
|
|
|
|
|
2012-04-11 03:10:53 +02:00
|
|
|
// CHECK: retw
|
|
|
|
retw
|
|
|
|
|
2009-08-09 09:20:21 +02:00
|
|
|
// FIXME: Check that this matches SUB32ri8
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: subl $1, %eax
|
2009-08-09 09:20:21 +02:00
|
|
|
subl $1, %eax
|
|
|
|
|
|
|
|
// FIXME: Check that this matches SUB32ri8
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: subl $-1, %eax
|
2009-08-09 09:20:21 +02:00
|
|
|
subl $-1, %eax
|
|
|
|
|
|
|
|
// FIXME: Check that this matches SUB32ri
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: subl $256, %eax
|
2009-08-09 09:20:21 +02:00
|
|
|
subl $256, %eax
|
|
|
|
|
2009-08-10 23:06:41 +02:00
|
|
|
// FIXME: Check that this matches XOR64ri8
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: xorq $1, %rax
|
2009-08-11 04:59:53 +02:00
|
|
|
xorq $1, %rax
|
2009-08-09 09:20:21 +02:00
|
|
|
|
2009-08-10 23:06:41 +02:00
|
|
|
// FIXME: Check that this matches XOR64ri32
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: xorq $256, %rax
|
2009-08-11 04:59:53 +02:00
|
|
|
xorq $256, %rax
|
|
|
|
|
|
|
|
// FIXME: Check that this matches SUB8rr
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: subb %al, %bl
|
2009-08-11 04:59:53 +02:00
|
|
|
subb %al, %bl
|
|
|
|
|
|
|
|
// FIXME: Check that this matches SUB16rr
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: subw %ax, %bx
|
2009-08-11 04:59:53 +02:00
|
|
|
subw %ax, %bx
|
|
|
|
|
|
|
|
// FIXME: Check that this matches SUB32rr
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: subl %eax, %ebx
|
2009-08-11 04:59:53 +02:00
|
|
|
subl %eax, %ebx
|
|
|
|
|
2009-08-11 07:00:25 +02:00
|
|
|
// FIXME: Check that this matches the correct instruction.
|
2010-07-19 09:21:07 +02:00
|
|
|
// CHECK: callq *%rax
|
2009-08-11 07:00:25 +02:00
|
|
|
call *%rax
|
2009-08-12 01:23:44 +02:00
|
|
|
|
|
|
|
// FIXME: Check that this matches the correct instruction.
|
2009-08-14 05:48:55 +02:00
|
|
|
// CHECK: shldl %cl, %eax, %ebx
|
2009-08-12 01:23:44 +02:00
|
|
|
shldl %cl, %eax, %ebx
|
2010-02-03 00:46:47 +01:00
|
|
|
|
|
|
|
// CHECK: shll $2, %eax
|
|
|
|
shll $2, %eax
|
|
|
|
|
|
|
|
// CHECK: shll $2, %eax
|
|
|
|
sall $2, %eax
|
2010-02-03 22:04:42 +01:00
|
|
|
|
|
|
|
// CHECK: rep
|
|
|
|
// CHECK: insb
|
|
|
|
rep;insb
|
|
|
|
|
|
|
|
// CHECK: rep
|
|
|
|
// CHECK: outsb
|
|
|
|
rep;outsb
|
|
|
|
|
|
|
|
// CHECK: rep
|
|
|
|
// CHECK: movsb
|
|
|
|
rep;movsb
|
|
|
|
|
2010-09-27 09:11:53 +02:00
|
|
|
|
|
|
|
// rdar://8470918
|
|
|
|
smovb // CHECK: movsb
|
|
|
|
smovw // CHECK: movsw
|
2013-07-23 03:50:47 +02:00
|
|
|
smovl // CHECK: movsl
|
2010-09-27 09:11:53 +02:00
|
|
|
smovq // CHECK: movsq
|
|
|
|
|
2010-09-22 05:50:32 +02:00
|
|
|
// rdar://8456361
|
|
|
|
// CHECK: rep
|
2013-07-23 03:50:47 +02:00
|
|
|
// CHECK: movsl
|
2010-09-22 05:50:32 +02:00
|
|
|
rep movsd
|
|
|
|
|
2010-02-03 22:04:42 +01:00
|
|
|
// CHECK: rep
|
|
|
|
// CHECK: lodsb
|
|
|
|
rep;lodsb
|
|
|
|
|
|
|
|
// CHECK: rep
|
|
|
|
// CHECK: stosb
|
|
|
|
rep;stosb
|
|
|
|
|
|
|
|
// NOTE: repz and repe have the same opcode as rep
|
|
|
|
// CHECK: rep
|
|
|
|
// CHECK: cmpsb
|
|
|
|
repz;cmpsb
|
|
|
|
|
|
|
|
// NOTE: repnz has the same opcode as repne
|
|
|
|
// CHECK: repne
|
|
|
|
// CHECK: cmpsb
|
|
|
|
repnz;cmpsb
|
|
|
|
|
|
|
|
// NOTE: repe and repz have the same opcode as rep
|
|
|
|
// CHECK: rep
|
|
|
|
// CHECK: scasb
|
|
|
|
repe;scasb
|
|
|
|
|
|
|
|
// CHECK: repne
|
|
|
|
// CHECK: scasb
|
|
|
|
repne;scasb
|
|
|
|
|
|
|
|
// CHECK: lock
|
2010-02-13 01:17:21 +01:00
|
|
|
// CHECK: cmpxchgb %al, (%ebx)
|
2010-02-03 22:04:42 +01:00
|
|
|
lock;cmpxchgb %al, 0(%ebx)
|
|
|
|
|
|
|
|
// CHECK: cs
|
2010-02-13 01:17:21 +01:00
|
|
|
// CHECK: movb (%eax), %al
|
2010-02-03 22:04:42 +01:00
|
|
|
cs;movb 0(%eax), %al
|
|
|
|
|
|
|
|
// CHECK: ss
|
2010-02-13 01:17:21 +01:00
|
|
|
// CHECK: movb (%eax), %al
|
2010-02-03 22:04:42 +01:00
|
|
|
ss;movb 0(%eax), %al
|
|
|
|
|
|
|
|
// CHECK: ds
|
2010-02-13 01:17:21 +01:00
|
|
|
// CHECK: movb (%eax), %al
|
2010-02-03 22:04:42 +01:00
|
|
|
ds;movb 0(%eax), %al
|
|
|
|
|
|
|
|
// CHECK: es
|
2010-02-13 01:17:21 +01:00
|
|
|
// CHECK: movb (%eax), %al
|
2010-02-03 22:04:42 +01:00
|
|
|
es;movb 0(%eax), %al
|
|
|
|
|
|
|
|
// CHECK: fs
|
2010-02-13 01:17:21 +01:00
|
|
|
// CHECK: movb (%eax), %al
|
2010-02-03 22:04:42 +01:00
|
|
|
fs;movb 0(%eax), %al
|
|
|
|
|
|
|
|
// CHECK: gs
|
2010-02-13 01:17:21 +01:00
|
|
|
// CHECK: movb (%eax), %al
|
2010-02-03 22:04:42 +01:00
|
|
|
gs;movb 0(%eax), %al
|
|
|
|
|
2010-02-09 01:49:22 +01:00
|
|
|
// CHECK: fadd %st(0)
|
|
|
|
// CHECK: fadd %st(1)
|
|
|
|
// CHECK: fadd %st(7)
|
|
|
|
|
|
|
|
fadd %st(0)
|
|
|
|
fadd %st(1)
|
|
|
|
fadd %st(7)
|
2010-05-07 00:39:14 +02:00
|
|
|
|
|
|
|
// CHECK: leal 0, %eax
|
|
|
|
leal 0, %eax
|
2010-05-20 01:34:33 +02:00
|
|
|
|
|
|
|
// rdar://7986634 - Insensitivity on opcodes.
|
|
|
|
// CHECK: int3
|
|
|
|
INT3
|
|
|
|
|
2011-04-09 21:41:05 +02:00
|
|
|
// rdar://8735979 - int $3 -> int3
|
|
|
|
// CHECK: int3
|
|
|
|
int $3
|
|
|
|
|
2010-08-24 21:13:38 +02:00
|
|
|
|
|
|
|
// Allow scale factor without index register.
|
|
|
|
// CHECK: movaps %xmm3, (%esi)
|
|
|
|
// CHECK-STDERR: warning: scale factor without index register is ignored
|
|
|
|
movaps %xmm3, (%esi, 2)
|
2010-08-24 21:24:18 +02:00
|
|
|
|
|
|
|
// CHECK: imull $12, %eax, %eax
|
|
|
|
imul $12, %eax
|
2010-08-24 21:37:56 +02:00
|
|
|
|
|
|
|
// CHECK: imull %ecx, %eax
|
|
|
|
imull %ecx, %eax
|
2010-09-07 01:29:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
// rdar://8208481
|
|
|
|
// CHECK: outb %al, $161
|
|
|
|
outb %al, $161
|
|
|
|
// CHECK: outw %ax, $128
|
|
|
|
outw %ax, $128
|
|
|
|
// CHECK: inb $161, %al
|
|
|
|
inb $161, %al
|
2010-09-07 01:40:56 +02:00
|
|
|
|
|
|
|
// rdar://8017621
|
|
|
|
// CHECK: pushq $1
|
|
|
|
push $1
|
|
|
|
|
2011-07-06 19:23:46 +02:00
|
|
|
// rdar://9716860
|
|
|
|
pushq $1
|
|
|
|
// CHECK: encoding: [0x6a,0x01]
|
|
|
|
pushq $1111111
|
|
|
|
// CHECK: encoding: [0x68,0x47,0xf4,0x10,0x00]
|
|
|
|
|
2010-09-07 01:51:44 +02:00
|
|
|
// rdar://8017530
|
|
|
|
// CHECK: sldtw 4
|
|
|
|
sldt 4
|
2010-09-07 02:05:45 +02:00
|
|
|
|
|
|
|
// rdar://8208499
|
|
|
|
// CHECK: cmovnew %bx, %ax
|
|
|
|
cmovnz %bx, %ax
|
|
|
|
// CHECK: cmovneq %rbx, %rax
|
|
|
|
cmovnzq %rbx, %rax
|
|
|
|
|
2010-09-11 18:32:12 +02:00
|
|
|
|
|
|
|
// rdar://8407928
|
|
|
|
// CHECK: inb $127, %al
|
2013-07-22 22:46:37 +02:00
|
|
|
// CHECK: inw %dx, %ax
|
2010-09-11 18:32:12 +02:00
|
|
|
// CHECK: outb %al, $127
|
2013-07-22 22:46:37 +02:00
|
|
|
// CHECK: outw %ax, %dx
|
|
|
|
// CHECK: inl %dx, %eax
|
2010-09-11 18:32:12 +02:00
|
|
|
inb $0x7f
|
|
|
|
inw %dx
|
|
|
|
outb $0x7f
|
|
|
|
outw %dx
|
|
|
|
inl %dx
|
2010-09-15 01:34:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
// PR8114
|
2013-07-22 22:46:37 +02:00
|
|
|
// CHECK: outb %al, %dx
|
|
|
|
// CHECK: outb %al, %dx
|
|
|
|
// CHECK: outw %ax, %dx
|
|
|
|
// CHECK: outw %ax, %dx
|
|
|
|
// CHECK: outl %eax, %dx
|
|
|
|
// CHECK: outl %eax, %dx
|
2011-02-22 21:40:09 +01:00
|
|
|
|
|
|
|
out %al, (%dx)
|
|
|
|
outb %al, (%dx)
|
|
|
|
out %ax, (%dx)
|
|
|
|
outw %ax, (%dx)
|
|
|
|
out %eax, (%dx)
|
|
|
|
outl %eax, (%dx)
|
2010-09-15 01:34:29 +02:00
|
|
|
|
2013-07-22 22:46:37 +02:00
|
|
|
// CHECK: inb %dx, %al
|
|
|
|
// CHECK: inb %dx, %al
|
|
|
|
// CHECK: inw %dx, %ax
|
|
|
|
// CHECK: inw %dx, %ax
|
|
|
|
// CHECK: inl %dx, %eax
|
|
|
|
// CHECK: inl %dx, %eax
|
2010-09-15 06:04:33 +02:00
|
|
|
|
2011-02-22 21:40:09 +01:00
|
|
|
in (%dx), %al
|
|
|
|
inb (%dx), %al
|
|
|
|
in (%dx), %ax
|
|
|
|
inw (%dx), %ax
|
|
|
|
in (%dx), %eax
|
|
|
|
inl (%dx), %eax
|
2010-09-15 06:04:33 +02:00
|
|
|
|
|
|
|
// rdar://8431422
|
|
|
|
|
2011-04-14 03:11:51 +02:00
|
|
|
// CHECK: fxch
|
|
|
|
// CHECK: fucom
|
|
|
|
// CHECK: fucomp
|
|
|
|
// CHECK: faddp
|
2010-09-15 06:04:33 +02:00
|
|
|
// CHECK: faddp %st(0)
|
2011-04-14 03:11:51 +02:00
|
|
|
// CHECK: fsubp
|
|
|
|
// CHECK: fsubrp
|
|
|
|
// CHECK: fmulp
|
|
|
|
// CHECK: fdivp
|
|
|
|
// CHECK: fdivrp
|
2010-09-15 06:04:33 +02:00
|
|
|
|
|
|
|
fxch
|
|
|
|
fucom
|
|
|
|
fucomp
|
|
|
|
faddp
|
|
|
|
faddp %st
|
|
|
|
fsubp
|
|
|
|
fsubrp
|
|
|
|
fmulp
|
|
|
|
fdivp
|
|
|
|
fdivrp
|
2010-09-15 06:08:38 +02:00
|
|
|
|
2011-04-14 03:11:51 +02:00
|
|
|
// CHECK: fcomi
|
2010-11-06 21:55:09 +01:00
|
|
|
// CHECK: fcomi %st(2)
|
2011-04-14 03:11:51 +02:00
|
|
|
// CHECK: fucomi
|
|
|
|
// CHECK: fucomi %st(2)
|
|
|
|
// CHECK: fucomi %st(2)
|
2010-09-15 06:08:38 +02:00
|
|
|
|
|
|
|
fcomi
|
|
|
|
fcomi %st(2)
|
|
|
|
fucomi
|
|
|
|
fucomi %st(2)
|
|
|
|
fucomi %st(2), %st
|
|
|
|
|
2011-06-14 05:17:20 +02:00
|
|
|
// CHECK: fnstsw
|
|
|
|
// CHECK: fnstsw
|
|
|
|
// CHECK: fnstsw
|
|
|
|
// CHECK: fnstsw
|
2010-09-15 06:15:16 +02:00
|
|
|
|
|
|
|
fnstsw
|
|
|
|
fnstsw %ax
|
|
|
|
fnstsw %eax
|
|
|
|
fnstsw %al
|
2010-09-15 06:33:27 +02:00
|
|
|
|
|
|
|
// rdar://8431880
|
2010-11-06 22:23:40 +01:00
|
|
|
// CHECK: rclb %bl
|
|
|
|
// CHECK: rcll 3735928559(%ebx,%ecx,8)
|
|
|
|
// CHECK: rcrl %ecx
|
|
|
|
// CHECK: rcrl 305419896
|
2010-09-15 06:33:27 +02:00
|
|
|
rcl %bl
|
|
|
|
rcll 0xdeadbeef(%ebx,%ecx,8)
|
|
|
|
rcr %ecx
|
|
|
|
rcrl 0x12345678
|
2010-09-15 06:37:18 +02:00
|
|
|
|
2010-11-06 22:23:40 +01:00
|
|
|
rclb %bl // CHECK: rclb %bl # encoding: [0xd0,0xd3]
|
|
|
|
rclb $1, %bl // CHECK: rclb %bl # encoding: [0xd0,0xd3]
|
|
|
|
rclb $2, %bl // CHECK: rclb $2, %bl # encoding: [0xc0,0xd3,0x02]
|
|
|
|
|
2010-09-15 06:37:18 +02:00
|
|
|
// rdar://8418316
|
2012-03-05 05:31:54 +01:00
|
|
|
// PR12173
|
2012-03-06 20:58:46 +01:00
|
|
|
// CHECK: shldw %cl, %bx, %dx
|
|
|
|
// CHECK: shldw %cl, %bx, %dx
|
|
|
|
// CHECK: shldw $1, %bx, %dx
|
|
|
|
// CHECK: shldw %cl, %bx, (%rax)
|
|
|
|
// CHECK: shldw %cl, %bx, (%rax)
|
|
|
|
// CHECK: shrdw %cl, %bx, %dx
|
|
|
|
// CHECK: shrdw %cl, %bx, %dx
|
|
|
|
// CHECK: shrdw $1, %bx, %dx
|
|
|
|
// CHECK: shrdw %cl, %bx, (%rax)
|
|
|
|
// CHECK: shrdw %cl, %bx, (%rax)
|
|
|
|
|
|
|
|
shld %bx, %dx
|
|
|
|
shld %cl, %bx, %dx
|
|
|
|
shld $1, %bx, %dx
|
|
|
|
shld %bx, (%rax)
|
|
|
|
shld %cl, %bx, (%rax)
|
|
|
|
shrd %bx, %dx
|
|
|
|
shrd %cl, %bx, %dx
|
|
|
|
shrd $1, %bx, %dx
|
|
|
|
shrd %bx, (%rax)
|
|
|
|
shrd %cl, %bx, (%rax)
|
2010-09-15 06:45:10 +02:00
|
|
|
|
|
|
|
// CHECK: sldtl %ecx
|
|
|
|
// CHECK: encoding: [0x0f,0x00,0xc1]
|
|
|
|
// CHECK: sldtw %cx
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0x00,0xc1]
|
|
|
|
|
|
|
|
sldt %ecx
|
|
|
|
sldt %cx
|
|
|
|
|
2010-09-15 07:14:54 +02:00
|
|
|
// CHECK: lcalll *3135175374
|
|
|
|
// CHECK: ljmpl *3135175374
|
|
|
|
lcall *0xbadeface
|
|
|
|
ljmp *0xbadeface
|
|
|
|
|
2010-09-17 20:02:29 +02:00
|
|
|
|
|
|
|
// rdar://8444631
|
|
|
|
// CHECK: enter $31438, $0
|
|
|
|
// CHECK: encoding: [0xc8,0xce,0x7a,0x00]
|
|
|
|
// CHECK: enter $31438, $1
|
|
|
|
// CHECK: encoding: [0xc8,0xce,0x7a,0x01]
|
|
|
|
// CHECK: enter $31438, $127
|
|
|
|
// CHECK: encoding: [0xc8,0xce,0x7a,0x7f]
|
|
|
|
enter $0x7ace,$0
|
|
|
|
enter $0x7ace,$1
|
|
|
|
enter $0x7ace,$0x7f
|
|
|
|
|
2010-09-22 06:04:03 +02:00
|
|
|
|
2010-09-22 06:11:10 +02:00
|
|
|
// rdar://8456364
|
|
|
|
// CHECK: movw %cs, %ax
|
|
|
|
mov %CS, %ax
|
2010-09-22 06:56:20 +02:00
|
|
|
|
|
|
|
// rdar://8456391
|
|
|
|
fcmovb %st(1), %st(0) // CHECK: fcmovb %st(1), %st(0)
|
|
|
|
fcmove %st(1), %st(0) // CHECK: fcmove %st(1), %st(0)
|
|
|
|
fcmovbe %st(1), %st(0) // CHECK: fcmovbe %st(1), %st(0)
|
|
|
|
fcmovu %st(1), %st(0) // CHECK: fcmovu %st(1), %st(0)
|
|
|
|
|
|
|
|
fcmovnb %st(1), %st(0) // CHECK: fcmovnb %st(1), %st(0)
|
|
|
|
fcmovne %st(1), %st(0) // CHECK: fcmovne %st(1), %st(0)
|
|
|
|
fcmovnbe %st(1), %st(0) // CHECK: fcmovnbe %st(1), %st(0)
|
|
|
|
fcmovnu %st(1), %st(0) // CHECK: fcmovnu %st(1), %st(0)
|
|
|
|
|
|
|
|
fcmovnae %st(1), %st(0) // CHECK: fcmovb %st(1), %st(0)
|
|
|
|
fcmovna %st(1), %st(0) // CHECK: fcmovbe %st(1), %st(0)
|
|
|
|
|
|
|
|
fcmovae %st(1), %st(0) // CHECK: fcmovnb %st(1), %st(0)
|
|
|
|
fcmova %st(1), %st(0) // CHECK: fcmovnbe %st(1), %st(0)
|
2010-09-22 07:05:16 +02:00
|
|
|
|
|
|
|
// rdar://8456417
|
|
|
|
.byte 88 + 1 & 15 // CHECK: .byte 9
|
|
|
|
|
2010-09-22 07:29:50 +02:00
|
|
|
// rdar://8456412
|
|
|
|
mov %rdx, %cr0
|
|
|
|
// CHECK: movq %rdx, %cr0
|
|
|
|
// CHECK: encoding: [0x0f,0x22,0xc2]
|
|
|
|
mov %rdx, %cr4
|
|
|
|
// CHECK: movq %rdx, %cr4
|
|
|
|
// CHECK: encoding: [0x0f,0x22,0xe2]
|
|
|
|
mov %rdx, %cr8
|
|
|
|
// CHECK: movq %rdx, %cr8
|
|
|
|
// CHECK: encoding: [0x44,0x0f,0x22,0xc2]
|
|
|
|
mov %rdx, %cr15
|
|
|
|
// CHECK: movq %rdx, %cr15
|
|
|
|
// CHECK: encoding: [0x44,0x0f,0x22,0xfa]
|
2010-09-22 08:26:39 +02:00
|
|
|
|
|
|
|
// rdar://8456371 - Handle commutable instructions written backward.
|
|
|
|
// CHECK: faddp %st(1)
|
|
|
|
// CHECK: fmulp %st(2)
|
|
|
|
faddp %st, %st(1)
|
|
|
|
fmulp %st, %st(2)
|
|
|
|
|
2010-09-27 09:08:21 +02:00
|
|
|
// rdar://8468087 - Encode these accurately, they are not synonyms.
|
|
|
|
// CHECK: fmul %st(0), %st(1)
|
|
|
|
// CHECK: encoding: [0xdc,0xc9]
|
|
|
|
// CHECK: fmul %st(1)
|
|
|
|
// CHECK: encoding: [0xd8,0xc9]
|
|
|
|
fmul %st, %st(1)
|
|
|
|
fmul %st(1), %st
|
|
|
|
|
|
|
|
// CHECK: fadd %st(0), %st(1)
|
|
|
|
// CHECK: encoding: [0xdc,0xc1]
|
|
|
|
// CHECK: fadd %st(1)
|
|
|
|
// CHECK: encoding: [0xd8,0xc1]
|
|
|
|
fadd %st, %st(1)
|
|
|
|
fadd %st(1), %st
|
|
|
|
|
|
|
|
|
2010-09-27 06:23:03 +02:00
|
|
|
// rdar://8416805
|
|
|
|
// CHECK: xorb %al, %al
|
|
|
|
// CHECK: encoding: [0x30,0xc0]
|
|
|
|
// CHECK: xorw %di, %di
|
|
|
|
// CHECK: encoding: [0x66,0x31,0xff]
|
|
|
|
// CHECK: xorl %esi, %esi
|
|
|
|
// CHECK: encoding: [0x31,0xf6]
|
|
|
|
// CHECK: xorq %rsi, %rsi
|
|
|
|
// CHECK: encoding: [0x48,0x31,0xf6]
|
|
|
|
clrb %al
|
|
|
|
clr %di
|
|
|
|
clr %esi
|
|
|
|
clr %rsi
|
|
|
|
|
2010-09-27 09:21:41 +02:00
|
|
|
// rdar://8456378
|
|
|
|
cltq // CHECK: cltq
|
|
|
|
cdqe // CHECK: cltq
|
|
|
|
cwde // CHECK: cwtl
|
|
|
|
cwtl // CHECK: cwtl
|
2010-09-22 08:26:39 +02:00
|
|
|
|
2010-09-27 09:24:57 +02:00
|
|
|
// rdar://8416805
|
|
|
|
cbw // CHECK: cbtw
|
|
|
|
cwd // CHECK: cwtd
|
|
|
|
cdq // CHECK: cltd
|
2011-11-24 13:02:46 +01:00
|
|
|
cqo // CHECK: cqto
|
2010-09-29 03:50:45 +02:00
|
|
|
|
|
|
|
// rdar://8456378 and PR7557 - fstsw
|
|
|
|
fstsw %ax
|
|
|
|
// CHECK: wait
|
2011-06-14 05:17:20 +02:00
|
|
|
// CHECK: fnstsw
|
2010-09-29 03:50:45 +02:00
|
|
|
fstsw (%rax)
|
|
|
|
// CHECK: wait
|
2010-10-22 05:58:29 +02:00
|
|
|
// CHECK: fnstsw (%rax)
|
2010-09-29 04:24:57 +02:00
|
|
|
|
2010-09-30 18:39:29 +02:00
|
|
|
// PR8259
|
|
|
|
fstcw (%rsp)
|
|
|
|
// CHECK: wait
|
2010-10-22 05:58:29 +02:00
|
|
|
// CHECK: fnstcw (%rsp)
|
2010-09-30 18:39:29 +02:00
|
|
|
|
2010-09-30 18:42:53 +02:00
|
|
|
// PR8259
|
|
|
|
fstcw (%rsp)
|
|
|
|
// CHECK: wait
|
2010-10-22 05:58:29 +02:00
|
|
|
// CHECK: fnstcw (%rsp)
|
2010-09-30 18:42:53 +02:00
|
|
|
|
|
|
|
// PR8258
|
|
|
|
finit
|
|
|
|
// CHECK: wait
|
|
|
|
// CHECK: fninit
|
|
|
|
|
2010-09-30 19:11:29 +02:00
|
|
|
fsave 32493
|
|
|
|
// CHECK: wait
|
|
|
|
// CHECK: fnsave 32493
|
|
|
|
|
2010-09-29 04:24:57 +02:00
|
|
|
|
|
|
|
// rdar://8456382 - cvtsd2si support.
|
|
|
|
cvtsd2si %xmm1, %rax
|
2013-01-06 21:39:29 +01:00
|
|
|
// CHECK: cvtsd2si %xmm1, %rax
|
2010-09-29 04:24:57 +02:00
|
|
|
// CHECK: encoding: [0xf2,0x48,0x0f,0x2d,0xc1]
|
|
|
|
cvtsd2si %xmm1, %eax
|
2013-01-06 21:39:29 +01:00
|
|
|
// CHECK: cvtsd2si %xmm1, %eax
|
2010-09-29 04:24:57 +02:00
|
|
|
// CHECK: encoding: [0xf2,0x0f,0x2d,0xc1]
|
|
|
|
|
2013-01-06 21:39:29 +01:00
|
|
|
cvtsd2siq %xmm0, %rax // CHECK: cvtsd2si %xmm0, %rax
|
|
|
|
cvtsd2sil %xmm0, %eax // CHECK: cvtsd2si %xmm0, %eax
|
|
|
|
cvtsd2si %xmm0, %rax // CHECK: cvtsd2si %xmm0, %rax
|
2010-09-29 06:55:40 +02:00
|
|
|
|
|
|
|
|
2010-09-29 04:36:32 +02:00
|
|
|
cvttpd2dq %xmm1, %xmm0 // CHECK: cvttpd2dq %xmm1, %xmm0
|
|
|
|
cvttpd2dq (%rax), %xmm0 // CHECK: cvttpd2dq (%rax), %xmm0
|
|
|
|
|
|
|
|
cvttps2dq %xmm1, %xmm0 // CHECK: cvttps2dq %xmm1, %xmm0
|
|
|
|
cvttps2dq (%rax), %xmm0 // CHECK: cvttps2dq (%rax), %xmm0
|
2010-09-29 04:57:56 +02:00
|
|
|
|
|
|
|
// rdar://8456376 - llvm-mc rejects 'roundss'
|
|
|
|
roundss $0xE, %xmm0, %xmm0 // CHECK: encoding: [0x66,0x0f,0x3a,0x0a,0xc0,0x0e]
|
|
|
|
roundps $0xE, %xmm0, %xmm0 // CHECK: encoding: [0x66,0x0f,0x3a,0x08,0xc0,0x0e]
|
|
|
|
roundsd $0xE, %xmm0, %xmm0 // CHECK: encoding: [0x66,0x0f,0x3a,0x0b,0xc0,0x0e]
|
|
|
|
roundpd $0xE, %xmm0, %xmm0 // CHECK: encoding: [0x66,0x0f,0x3a,0x09,0xc0,0x0e]
|
2010-09-29 05:33:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
// rdar://8482675 - 32-bit mem operand support in 64-bit mode (0x67 prefix)
|
|
|
|
leal 8(%eax), %esi
|
|
|
|
// CHECK: leal 8(%eax), %esi
|
|
|
|
// CHECK: encoding: [0x67,0x8d,0x70,0x08]
|
|
|
|
leaq 8(%eax), %rsi
|
|
|
|
// CHECK: leaq 8(%eax), %rsi
|
|
|
|
// CHECK: encoding: [0x67,0x48,0x8d,0x70,0x08]
|
|
|
|
leaq 8(%rax), %rsi
|
|
|
|
// CHECK: leaq 8(%rax), %rsi
|
|
|
|
// CHECK: encoding: [0x48,0x8d,0x70,0x08]
|
|
|
|
|
2010-09-29 05:43:43 +02:00
|
|
|
|
|
|
|
cvttpd2dq 0xdeadbeef(%ebx,%ecx,8),%xmm5
|
|
|
|
// CHECK: cvttpd2dq 3735928559(%ebx,%ecx,8), %xmm5
|
|
|
|
// CHECK: encoding: [0x67,0x66,0x0f,0xe6,0xac,0xcb,0xef,0xbe,0xad,0xde]
|
|
|
|
|
2010-09-29 07:05:03 +02:00
|
|
|
// rdar://8490728 - llvm-mc rejects 'movmskpd'
|
|
|
|
movmskpd %xmm6, %rax
|
|
|
|
// CHECK: movmskpd %xmm6, %rax
|
|
|
|
// CHECK: encoding: [0x66,0x48,0x0f,0x50,0xc6]
|
|
|
|
movmskpd %xmm6, %eax
|
|
|
|
// CHECK: movmskpd %xmm6, %eax
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0x50,0xc6]
|
2010-09-29 20:39:16 +02:00
|
|
|
|
|
|
|
// rdar://8491845 - Gas supports commuted forms of non-commutable instructions.
|
|
|
|
fdivrp %st(0), %st(1) // CHECK: encoding: [0xde,0xf9]
|
|
|
|
fdivrp %st(1), %st(0) // CHECK: encoding: [0xde,0xf9]
|
|
|
|
|
|
|
|
fsubrp %ST(0), %ST(1) // CHECK: encoding: [0xde,0xe9]
|
|
|
|
fsubrp %ST(1), %ST(0) // CHECK: encoding: [0xde,0xe9]
|
|
|
|
|
2010-12-30 23:10:49 +01:00
|
|
|
// also PR8861
|
|
|
|
fdivp %st(0), %st(1) // CHECK: encoding: [0xde,0xf1]
|
|
|
|
fdivp %st(1), %st(0) // CHECK: encoding: [0xde,0xf1]
|
|
|
|
|
2010-09-30 18:39:29 +02:00
|
|
|
|
2010-09-30 19:14:30 +02:00
|
|
|
movl foo(%rip), %eax
|
|
|
|
// CHECK: movl foo(%rip), %eax
|
|
|
|
// CHECK: encoding: [0x8b,0x05,A,A,A,A]
|
|
|
|
// CHECK: fixup A - offset: 2, value: foo-4, kind: reloc_riprel_4byte
|
|
|
|
|
|
|
|
movb $12, foo(%rip)
|
|
|
|
// CHECK: movb $12, foo(%rip)
|
|
|
|
// CHECK: encoding: [0xc6,0x05,A,A,A,A,0x0c]
|
|
|
|
// CHECK: fixup A - offset: 2, value: foo-5, kind: reloc_riprel_4byte
|
|
|
|
|
|
|
|
movw $12, foo(%rip)
|
|
|
|
// CHECK: movw $12, foo(%rip)
|
|
|
|
// CHECK: encoding: [0x66,0xc7,0x05,A,A,A,A,0x0c,0x00]
|
|
|
|
// CHECK: fixup A - offset: 3, value: foo-6, kind: reloc_riprel_4byte
|
|
|
|
|
|
|
|
movl $12, foo(%rip)
|
|
|
|
// CHECK: movl $12, foo(%rip)
|
|
|
|
// CHECK: encoding: [0xc7,0x05,A,A,A,A,0x0c,0x00,0x00,0x00]
|
|
|
|
// CHECK: fixup A - offset: 2, value: foo-8, kind: reloc_riprel_4byte
|
|
|
|
|
|
|
|
movq $12, foo(%rip)
|
|
|
|
// CHECK: movq $12, foo(%rip)
|
|
|
|
// CHECK: encoding: [0x48,0xc7,0x05,A,A,A,A,0x0c,0x00,0x00,0x00]
|
|
|
|
// CHECK: fixup A - offset: 3, value: foo-8, kind: reloc_riprel_4byte
|
|
|
|
|
|
|
|
// CHECK: addq $-424, %rax
|
|
|
|
// CHECK: encoding: [0x48,0x05,0x58,0xfe,0xff,0xff]
|
|
|
|
addq $-424, %rax
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: movq _foo@GOTPCREL(%rip), %rax
|
|
|
|
// CHECK: encoding: [0x48,0x8b,0x05,A,A,A,A]
|
|
|
|
// CHECK: fixup A - offset: 3, value: _foo@GOTPCREL-4, kind: reloc_riprel_4byte_movq_load
|
|
|
|
movq _foo@GOTPCREL(%rip), %rax
|
|
|
|
|
|
|
|
// CHECK: movq _foo@GOTPCREL(%rip), %r14
|
|
|
|
// CHECK: encoding: [0x4c,0x8b,0x35,A,A,A,A]
|
|
|
|
// CHECK: fixup A - offset: 3, value: _foo@GOTPCREL-4, kind: reloc_riprel_4byte_movq_load
|
|
|
|
movq _foo@GOTPCREL(%rip), %r14
|
|
|
|
|
|
|
|
|
|
|
|
// CHECK: movq (%r13,%rax,8), %r13
|
|
|
|
// CHECK: encoding: [0x4d,0x8b,0x6c,0xc5,0x00]
|
|
|
|
movq 0x00(%r13,%rax,8),%r13
|
|
|
|
|
|
|
|
// CHECK: testq %rax, %rbx
|
|
|
|
// CHECK: encoding: [0x48,0x85,0xd8]
|
|
|
|
testq %rax, %rbx
|
|
|
|
|
|
|
|
// CHECK: cmpq %rbx, %r14
|
|
|
|
// CHECK: encoding: [0x49,0x39,0xde]
|
|
|
|
cmpq %rbx, %r14
|
|
|
|
|
|
|
|
// rdar://7947167
|
|
|
|
|
|
|
|
movsq
|
|
|
|
// CHECK: movsq
|
|
|
|
// CHECK: encoding: [0x48,0xa5]
|
|
|
|
|
|
|
|
movsl
|
2013-07-23 03:50:47 +02:00
|
|
|
// CHECK: movsl
|
2010-09-30 19:14:30 +02:00
|
|
|
// CHECK: encoding: [0xa5]
|
|
|
|
|
|
|
|
stosq
|
|
|
|
// CHECK: stosq
|
|
|
|
// CHECK: encoding: [0x48,0xab]
|
|
|
|
stosl
|
|
|
|
// CHECK: stosl
|
|
|
|
// CHECK: encoding: [0xab]
|
|
|
|
|
|
|
|
|
|
|
|
// Not moffset forms of moves, they are x86-32 only! rdar://7947184
|
|
|
|
movb 0, %al // CHECK: movb 0, %al # encoding: [0x8a,0x04,0x25,0x00,0x00,0x00,0x00]
|
|
|
|
movw 0, %ax // CHECK: movw 0, %ax # encoding: [0x66,0x8b,0x04,0x25,0x00,0x00,0x00,0x00]
|
|
|
|
movl 0, %eax // CHECK: movl 0, %eax # encoding: [0x8b,0x04,0x25,0x00,0x00,0x00,0x00]
|
|
|
|
|
|
|
|
// CHECK: pushfq # encoding: [0x9c]
|
|
|
|
pushf
|
|
|
|
// CHECK: pushfq # encoding: [0x9c]
|
|
|
|
pushfq
|
|
|
|
// CHECK: popfq # encoding: [0x9d]
|
|
|
|
popf
|
|
|
|
// CHECK: popfq # encoding: [0x9d]
|
|
|
|
popfq
|
|
|
|
|
|
|
|
// CHECK: movabsq $-281474976710654, %rax
|
|
|
|
// CHECK: encoding: [0x48,0xb8,0x02,0x00,0x00,0x00,0x00,0x00,0xff,0xff]
|
|
|
|
movabsq $0xFFFF000000000002, %rax
|
|
|
|
|
2010-10-05 23:09:45 +02:00
|
|
|
// CHECK: movabsq $-281474976710654, %rax
|
2010-09-30 19:14:30 +02:00
|
|
|
// CHECK: encoding: [0x48,0xb8,0x02,0x00,0x00,0x00,0x00,0x00,0xff,0xff]
|
|
|
|
movq $0xFFFF000000000002, %rax
|
|
|
|
|
|
|
|
// CHECK: movq $-65536, %rax
|
|
|
|
// CHECK: encoding: [0x48,0xc7,0xc0,0x00,0x00,0xff,0xff]
|
|
|
|
movq $0xFFFFFFFFFFFF0000, %rax
|
|
|
|
|
|
|
|
// CHECK: movq $-256, %rax
|
|
|
|
// CHECK: encoding: [0x48,0xc7,0xc0,0x00,0xff,0xff,0xff]
|
|
|
|
movq $0xFFFFFFFFFFFFFF00, %rax
|
|
|
|
|
|
|
|
// CHECK: movq $10, %rax
|
|
|
|
// CHECK: encoding: [0x48,0xc7,0xc0,0x0a,0x00,0x00,0x00]
|
|
|
|
movq $10, %rax
|
|
|
|
|
2013-07-22 23:25:31 +02:00
|
|
|
// CHECK: movabsb -6066930261531658096, %al
|
|
|
|
// CHECK: encoding: [0xa0,0x90,0x78,0x56,0x34,0x12,0xef,0xcd,0xab]
|
|
|
|
movabsb 0xabcdef1234567890,%al
|
|
|
|
|
|
|
|
// CHECK: movabsw -6066930261531658096, %ax
|
|
|
|
// CHECK: encoding: [0x66,0xa1,0x90,0x78,0x56,0x34,0x12,0xef,0xcd,0xab]
|
|
|
|
movabsw 0xabcdef1234567890,%ax
|
|
|
|
|
|
|
|
// CHECK: movabsl -6066930261531658096, %eax
|
|
|
|
// CHECK: encoding: [0xa1,0x90,0x78,0x56,0x34,0x12,0xef,0xcd,0xab]
|
|
|
|
movabsl 0xabcdef1234567890,%eax
|
|
|
|
|
|
|
|
// CHECK: movabsq -6066930261531658096, %rax
|
|
|
|
// CHECK: encoding: [0x48,0xa1,0x90,0x78,0x56,0x34,0x12,0xef,0xcd,0xab]
|
|
|
|
movabsq 0xabcdef1234567890, %rax
|
|
|
|
|
|
|
|
// CHECK: movabsb %al, -6066930261531658096
|
|
|
|
// CHECK: encoding: [0xa2,0x90,0x78,0x56,0x34,0x12,0xef,0xcd,0xab]
|
|
|
|
movabsb %al,0xabcdef1234567890
|
|
|
|
|
|
|
|
// CHECK: movabsw %ax, -6066930261531658096
|
|
|
|
// CHECK: encoding: [0x66,0xa3,0x90,0x78,0x56,0x34,0x12,0xef,0xcd,0xab]
|
|
|
|
movabsw %ax,0xabcdef1234567890
|
|
|
|
|
|
|
|
// CHECK: movabsl %eax, -6066930261531658096
|
|
|
|
// CHECK: encoding: [0xa3,0x90,0x78,0x56,0x34,0x12,0xef,0xcd,0xab]
|
|
|
|
movabsl %eax,0xabcdef1234567890
|
|
|
|
|
|
|
|
// CHECK: movabsq %rax, -6066930261531658096
|
|
|
|
// CHECK: encoding: [0x48,0xa3,0x90,0x78,0x56,0x34,0x12,0xef,0xcd,0xab]
|
|
|
|
movabsq %rax,0xabcdef1234567890
|
|
|
|
|
2010-09-30 19:14:30 +02:00
|
|
|
// rdar://8014869
|
|
|
|
//
|
|
|
|
// CHECK: ret
|
|
|
|
// CHECK: encoding: [0xc3]
|
|
|
|
retq
|
|
|
|
|
|
|
|
// CHECK: sete %al
|
|
|
|
// CHECK: encoding: [0x0f,0x94,0xc0]
|
|
|
|
setz %al
|
|
|
|
|
|
|
|
// CHECK: setne %al
|
|
|
|
// CHECK: encoding: [0x0f,0x95,0xc0]
|
|
|
|
setnz %al
|
|
|
|
|
|
|
|
// CHECK: je 0
|
|
|
|
// CHECK: encoding: [0x74,A]
|
|
|
|
jz 0
|
|
|
|
|
|
|
|
// CHECK: jne
|
|
|
|
// CHECK: encoding: [0x75,A]
|
|
|
|
jnz 0
|
|
|
|
|
2011-02-19 22:06:36 +01:00
|
|
|
// PR9264
|
|
|
|
btl $1, 0 // CHECK: btl $1, 0 # encoding: [0x0f,0xba,0x24,0x25,0x00,0x00,0x00,0x00,0x01]
|
|
|
|
bt $1, 0 // CHECK: btl $1, 0 # encoding: [0x0f,0xba,0x24,0x25,0x00,0x00,0x00,0x00,0x01]
|
|
|
|
|
2010-09-30 19:14:30 +02:00
|
|
|
// rdar://8017515
|
|
|
|
btq $0x01,%rdx
|
|
|
|
// CHECK: btq $1, %rdx
|
|
|
|
// CHECK: encoding: [0x48,0x0f,0xba,0xe2,0x01]
|
|
|
|
|
|
|
|
//rdar://8017633
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movzbl %al, %esi
|
2010-09-30 19:14:30 +02:00
|
|
|
// CHECK: encoding: [0x0f,0xb6,0xf0]
|
|
|
|
movzx %al, %esi
|
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movzbq %al, %rsi
|
2010-09-30 19:14:30 +02:00
|
|
|
// CHECK: encoding: [0x48,0x0f,0xb6,0xf0]
|
|
|
|
movzx %al, %rsi
|
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movsbw %al, %ax
|
2010-11-01 06:34:34 +01:00
|
|
|
// CHECK: encoding: [0x66,0x0f,0xbe,0xc0]
|
2011-04-14 03:46:37 +02:00
|
|
|
movsx %al, %ax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movsbl %al, %eax
|
2010-11-01 06:34:34 +01:00
|
|
|
// CHECK: encoding: [0x0f,0xbe,0xc0]
|
2011-04-14 03:46:37 +02:00
|
|
|
movsx %al, %eax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movswl %ax, %eax
|
2010-11-01 06:34:34 +01:00
|
|
|
// CHECK: encoding: [0x0f,0xbf,0xc0]
|
2011-04-14 03:46:37 +02:00
|
|
|
movsx %ax, %eax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movsbq %bl, %rax
|
2010-11-01 06:34:34 +01:00
|
|
|
// CHECK: encoding: [0x48,0x0f,0xbe,0xc3]
|
2011-04-14 03:46:37 +02:00
|
|
|
movsx %bl, %rax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movswq %cx, %rax
|
2010-11-01 06:34:34 +01:00
|
|
|
// CHECK: encoding: [0x48,0x0f,0xbf,0xc1]
|
2011-04-14 03:46:37 +02:00
|
|
|
movsx %cx, %rax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movslq %edi, %rax
|
2010-11-01 06:34:34 +01:00
|
|
|
// CHECK: encoding: [0x48,0x63,0xc7]
|
2011-04-14 03:46:37 +02:00
|
|
|
movsx %edi, %rax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movzbw %al, %ax
|
2010-11-01 06:34:34 +01:00
|
|
|
// CHECK: encoding: [0x66,0x0f,0xb6,0xc0]
|
2011-04-14 03:46:37 +02:00
|
|
|
movzx %al, %ax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movzbl %al, %eax
|
2010-11-01 06:34:34 +01:00
|
|
|
// CHECK: encoding: [0x0f,0xb6,0xc0]
|
2011-04-14 03:46:37 +02:00
|
|
|
movzx %al, %eax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movzwl %ax, %eax
|
2010-11-01 06:34:34 +01:00
|
|
|
// CHECK: encoding: [0x0f,0xb7,0xc0]
|
2011-04-14 03:46:37 +02:00
|
|
|
movzx %ax, %eax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movzbq %bl, %rax
|
2010-11-01 06:34:34 +01:00
|
|
|
// CHECK: encoding: [0x48,0x0f,0xb6,0xc3]
|
2011-04-14 03:46:37 +02:00
|
|
|
movzx %bl, %rax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2011-04-14 03:46:37 +02:00
|
|
|
// CHECK: movzwq %cx, %rax
|
2010-11-01 06:34:34 +01:00
|
|
|
// CHECK: encoding: [0x48,0x0f,0xb7,0xc1]
|
2011-04-14 03:46:37 +02:00
|
|
|
movzx %cx, %rax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2010-11-01 06:41:10 +01:00
|
|
|
// CHECK: movsbw (%rax), %ax
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0xbe,0x00]
|
2011-04-14 03:46:37 +02:00
|
|
|
movsx (%rax), %ax
|
2010-11-01 06:34:34 +01:00
|
|
|
|
2010-11-01 06:41:10 +01:00
|
|
|
// CHECK: movzbw (%rax), %ax
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0xb6,0x00]
|
2011-04-14 03:46:37 +02:00
|
|
|
movzx (%rax), %ax
|
2010-09-30 19:14:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
// rdar://7873482
|
|
|
|
// CHECK: [0x65,0x8b,0x04,0x25,0x7c,0x00,0x00,0x00]
|
|
|
|
movl %gs:124, %eax
|
|
|
|
|
|
|
|
// CHECK: jmpq *8(%rax)
|
|
|
|
// CHECK: encoding: [0xff,0x60,0x08]
|
|
|
|
jmp *8(%rax)
|
|
|
|
|
|
|
|
// CHECK: btq $61, -216(%rbp)
|
|
|
|
// CHECK: encoding: [0x48,0x0f,0xba,0xa5,0x28,0xff,0xff,0xff,0x3d]
|
|
|
|
btq $61, -216(%rbp)
|
|
|
|
|
|
|
|
|
|
|
|
// rdar://8061602
|
|
|
|
L1:
|
|
|
|
jecxz L1
|
|
|
|
// CHECK: jecxz L1
|
|
|
|
// CHECK: encoding: [0x67,0xe3,A]
|
|
|
|
jrcxz L1
|
|
|
|
// CHECK: jrcxz L1
|
|
|
|
// CHECK: encoding: [0xe3,A]
|
|
|
|
|
|
|
|
// PR8061
|
|
|
|
xchgl 368(%rax),%ecx
|
|
|
|
// CHECK: xchgl %ecx, 368(%rax)
|
|
|
|
xchgl %ecx, 368(%rax)
|
|
|
|
// CHECK: xchgl %ecx, 368(%rax)
|
|
|
|
|
|
|
|
// rdar://8407548
|
|
|
|
xchg 0xdeadbeef(%rbx,%rcx,8),%bl
|
|
|
|
// CHECK: xchgb %bl, 3735928559(%rbx,%rcx,8)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// PR7254
|
|
|
|
lock incl 1(%rsp)
|
|
|
|
// CHECK: lock
|
|
|
|
// CHECK: incl 1(%rsp)
|
|
|
|
|
2010-12-09 00:57:59 +01:00
|
|
|
// rdar://8741045
|
|
|
|
lock/incl 1(%rsp)
|
|
|
|
// CHECK: lock
|
|
|
|
// CHECK: incl 1(%rsp)
|
|
|
|
|
2010-09-30 19:14:30 +02:00
|
|
|
// rdar://8033482
|
|
|
|
rep movsl
|
|
|
|
// CHECK: rep
|
|
|
|
// CHECK: encoding: [0xf3]
|
2013-07-23 03:50:47 +02:00
|
|
|
// CHECK: movsl
|
2010-09-30 19:14:30 +02:00
|
|
|
// CHECK: encoding: [0xa5]
|
|
|
|
|
|
|
|
|
|
|
|
// rdar://8403974
|
|
|
|
iret
|
|
|
|
// CHECK: iretl
|
|
|
|
// CHECK: encoding: [0xcf]
|
|
|
|
iretw
|
|
|
|
// CHECK: iretw
|
|
|
|
// CHECK: encoding: [0x66,0xcf]
|
|
|
|
iretl
|
|
|
|
// CHECK: iretl
|
|
|
|
// CHECK: encoding: [0xcf]
|
|
|
|
iretq
|
|
|
|
// CHECK: iretq
|
|
|
|
// CHECK: encoding: [0x48,0xcf]
|
|
|
|
|
2010-10-18 19:04:36 +02:00
|
|
|
// rdar://8416805
|
|
|
|
// CHECK: retw $31438
|
|
|
|
// CHECK: encoding: [0x66,0xc2,0xce,0x7a]
|
|
|
|
retw $0x7ace
|
|
|
|
|
|
|
|
// CHECK: lretw $31438
|
|
|
|
// CHECK: encoding: [0x66,0xca,0xce,0x7a]
|
|
|
|
lretw $0x7ace
|
|
|
|
|
2010-11-12 18:41:20 +01:00
|
|
|
// PR8592
|
|
|
|
lretq // CHECK: lretq # encoding: [0x48,0xcb]
|
2010-11-12 19:54:56 +01:00
|
|
|
lretl // CHECK: lretl # encoding: [0xcb]
|
|
|
|
lret // CHECK: lretl # encoding: [0xcb]
|
2012-04-11 03:10:53 +02:00
|
|
|
lretw // CHECK: lretw # encoding: [0x66,0xcb]
|
2010-11-12 18:41:20 +01:00
|
|
|
|
2010-09-30 19:14:30 +02:00
|
|
|
// rdar://8403907
|
|
|
|
sysret
|
|
|
|
// CHECK: sysretl
|
|
|
|
// CHECK: encoding: [0x0f,0x07]
|
|
|
|
sysretl
|
|
|
|
// CHECK: sysretl
|
|
|
|
// CHECK: encoding: [0x0f,0x07]
|
|
|
|
sysretq
|
|
|
|
// CHECK: sysretq
|
|
|
|
// CHECK: encoding: [0x48,0x0f,0x07]
|
|
|
|
|
|
|
|
// rdar://8407242
|
|
|
|
push %fs
|
|
|
|
// CHECK: pushq %fs
|
|
|
|
// CHECK: encoding: [0x0f,0xa0]
|
|
|
|
push %gs
|
|
|
|
// CHECK: pushq %gs
|
|
|
|
// CHECK: encoding: [0x0f,0xa8]
|
|
|
|
|
|
|
|
pushw %fs
|
|
|
|
// CHECK: pushw %fs
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0xa0]
|
|
|
|
pushw %gs
|
|
|
|
// CHECK: pushw %gs
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0xa8]
|
|
|
|
|
|
|
|
|
|
|
|
pop %fs
|
|
|
|
// CHECK: popq %fs
|
|
|
|
// CHECK: encoding: [0x0f,0xa1]
|
|
|
|
pop %gs
|
|
|
|
// CHECK: popq %gs
|
|
|
|
// CHECK: encoding: [0x0f,0xa9]
|
|
|
|
|
|
|
|
popw %fs
|
|
|
|
// CHECK: popw %fs
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0xa1]
|
|
|
|
popw %gs
|
|
|
|
// CHECK: popw %gs
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0xa9]
|
|
|
|
|
|
|
|
// rdar://8438816
|
|
|
|
fildq -8(%rsp)
|
|
|
|
fildll -8(%rsp)
|
|
|
|
// CHECK: fildll -8(%rsp)
|
|
|
|
// CHECK: encoding: [0xdf,0x6c,0x24,0xf8]
|
|
|
|
// CHECK: fildll -8(%rsp)
|
|
|
|
// CHECK: encoding: [0xdf,0x6c,0x24,0xf8]
|
|
|
|
|
2010-09-30 19:24:05 +02:00
|
|
|
// CHECK: callq a
|
|
|
|
callq a
|
|
|
|
|
|
|
|
// CHECK: leaq -40(%rbp), %r15
|
|
|
|
leaq -40(%rbp), %r15
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// rdar://8013734 - Alias dr6=db6
|
|
|
|
mov %dr6, %rax
|
|
|
|
mov %db6, %rax
|
|
|
|
// CHECK: movq %dr6, %rax
|
|
|
|
// CHECK: movq %dr6, %rax
|
|
|
|
|
|
|
|
|
|
|
|
// INC/DEC encodings.
|
|
|
|
incb %al // CHECK: incb %al # encoding: [0xfe,0xc0]
|
|
|
|
incw %ax // CHECK: incw %ax # encoding: [0x66,0xff,0xc0]
|
|
|
|
incl %eax // CHECK: incl %eax # encoding: [0xff,0xc0]
|
|
|
|
decb %al // CHECK: decb %al # encoding: [0xfe,0xc8]
|
|
|
|
decw %ax // CHECK: decw %ax # encoding: [0x66,0xff,0xc8]
|
|
|
|
decl %eax // CHECK: decl %eax # encoding: [0xff,0xc8]
|
|
|
|
|
2010-10-19 02:01:44 +02:00
|
|
|
// rdar://8416805
|
|
|
|
// CHECK: lgdt 4(%rax)
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0x50,0x04]
|
|
|
|
lgdt 4(%rax)
|
|
|
|
|
|
|
|
// CHECK: lgdt 4(%rax)
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0x50,0x04]
|
|
|
|
lgdtq 4(%rax)
|
|
|
|
|
|
|
|
// CHECK: lidt 4(%rax)
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0x58,0x04]
|
|
|
|
lidt 4(%rax)
|
|
|
|
|
|
|
|
// CHECK: lidt 4(%rax)
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0x58,0x04]
|
|
|
|
lidtq 4(%rax)
|
|
|
|
|
|
|
|
// CHECK: sgdt 4(%rax)
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0x40,0x04]
|
|
|
|
sgdt 4(%rax)
|
|
|
|
|
|
|
|
// CHECK: sgdt 4(%rax)
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0x40,0x04]
|
|
|
|
sgdtq 4(%rax)
|
|
|
|
|
|
|
|
// CHECK: sidt 4(%rax)
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0x48,0x04]
|
|
|
|
sidt 4(%rax)
|
|
|
|
|
|
|
|
// CHECK: sidt 4(%rax)
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0x48,0x04]
|
|
|
|
sidtq 4(%rax)
|
2010-11-06 23:35:34 +01:00
|
|
|
|
|
|
|
|
|
|
|
// rdar://8208615
|
|
|
|
mov (%rsi), %gs // CHECK: movl (%rsi), %gs # encoding: [0x8e,0x2e]
|
|
|
|
mov %gs, (%rsi) // CHECK: movl %gs, (%rsi) # encoding: [0x8c,0x2e]
|
|
|
|
|
|
|
|
|
2010-11-06 23:41:18 +01:00
|
|
|
// rdar://8431864
|
|
|
|
div %bl,%al
|
|
|
|
div %bx,%ax
|
|
|
|
div %ecx,%eax
|
|
|
|
div 0xdeadbeef(%ebx,%ecx,8),%eax
|
|
|
|
div 0x45,%eax
|
|
|
|
div 0x7eed,%eax
|
|
|
|
div 0xbabecafe,%eax
|
|
|
|
div 0x12345678,%eax
|
|
|
|
idiv %bl,%al
|
|
|
|
idiv %bx,%ax
|
|
|
|
idiv %ecx,%eax
|
|
|
|
idiv 0xdeadbeef(%ebx,%ecx,8),%eax
|
|
|
|
idiv 0x45,%eax
|
|
|
|
idiv 0x7eed,%eax
|
|
|
|
idiv 0xbabecafe,%eax
|
|
|
|
idiv 0x12345678,%eax
|
2010-11-21 09:18:57 +01:00
|
|
|
|
|
|
|
// PR8524
|
|
|
|
movd %rax, %mm5 // CHECK: movd %rax, %mm5 # encoding: [0x48,0x0f,0x6e,0xe8]
|
|
|
|
movd %mm5, %rbx // CHECK: movd %mm5, %rbx # encoding: [0x48,0x0f,0x7e,0xeb]
|
|
|
|
movq %rax, %mm5 // CHECK: movd %rax, %mm5 # encoding: [0x48,0x0f,0x6e,0xe8]
|
|
|
|
movq %mm5, %rbx // CHECK: movd %mm5, %rbx # encoding: [0x48,0x0f,0x7e,0xeb]
|
|
|
|
|
2010-11-24 19:03:57 +01:00
|
|
|
rex64 // CHECK: rex64 # encoding: [0x48]
|
2010-11-27 21:29:45 +01:00
|
|
|
data16 // CHECK: data16 # encoding: [0x66]
|
2010-12-25 22:36:35 +01:00
|
|
|
|
|
|
|
// PR8855
|
|
|
|
movq 18446744073709551615,%rbx // CHECK: movq -1, %rbx
|
|
|
|
|
2011-01-11 18:04:55 +01:00
|
|
|
// PR8946
|
|
|
|
movdqu %xmm0, %xmm1 // CHECK: movdqu %xmm0, %xmm1 # encoding: [0xf3,0x0f,0x6f,0xc8]
|
2011-02-22 01:35:18 +01:00
|
|
|
|
|
|
|
// PR8935
|
|
|
|
xgetbv // CHECK: xgetbv # encoding: [0x0f,0x01,0xd0]
|
|
|
|
xsetbv // CHECK: xsetbv # encoding: [0x0f,0x01,0xd1]
|
2011-02-22 01:43:07 +01:00
|
|
|
|
|
|
|
// CHECK: loope 0
|
|
|
|
// CHECK: encoding: [0xe1,A]
|
|
|
|
loopz 0
|
|
|
|
|
|
|
|
// CHECK: loopne 0
|
|
|
|
// CHECK: encoding: [0xe0,A]
|
|
|
|
loopnz 0
|
2011-03-04 05:06:47 +01:00
|
|
|
|
2011-03-18 12:59:40 +01:00
|
|
|
// CHECK: outsb # encoding: [0x6e]
|
|
|
|
// CHECK: outsb
|
|
|
|
// CHECK: outsb
|
|
|
|
outsb
|
|
|
|
outsb %ds:(%rsi), %dx
|
|
|
|
outsb (%rsi), %dx
|
|
|
|
|
|
|
|
// CHECK: outsw # encoding: [0x66,0x6f]
|
|
|
|
// CHECK: outsw
|
|
|
|
// CHECK: outsw
|
|
|
|
outsw
|
|
|
|
outsw %ds:(%rsi), %dx
|
|
|
|
outsw (%rsi), %dx
|
|
|
|
|
|
|
|
// CHECK: outsl # encoding: [0x6f]
|
|
|
|
// CHECK: outsl
|
|
|
|
outsl
|
|
|
|
outsl %ds:(%rsi), %dx
|
|
|
|
outsl (%rsi), %dx
|
|
|
|
|
|
|
|
// CHECK: insb # encoding: [0x6c]
|
|
|
|
// CHECK: insb
|
|
|
|
insb
|
|
|
|
insb %dx, %es:(%rdi)
|
|
|
|
|
|
|
|
// CHECK: insw # encoding: [0x66,0x6d]
|
|
|
|
// CHECK: insw
|
|
|
|
insw
|
|
|
|
insw %dx, %es:(%rdi)
|
|
|
|
|
|
|
|
// CHECK: insl # encoding: [0x6d]
|
|
|
|
// CHECK: insl
|
|
|
|
insl
|
|
|
|
insl %dx, %es:(%rdi)
|
|
|
|
|
|
|
|
// CHECK: movsb # encoding: [0xa4]
|
|
|
|
// CHECK: movsb
|
|
|
|
// CHECK: movsb
|
|
|
|
movsb
|
|
|
|
movsb %ds:(%rsi), %es:(%rdi)
|
|
|
|
movsb (%rsi), %es:(%rdi)
|
|
|
|
|
|
|
|
// CHECK: movsw # encoding: [0x66,0xa5]
|
|
|
|
// CHECK: movsw
|
|
|
|
// CHECK: movsw
|
|
|
|
movsw
|
|
|
|
movsw %ds:(%rsi), %es:(%rdi)
|
|
|
|
movsw (%rsi), %es:(%rdi)
|
|
|
|
|
2013-07-23 03:50:47 +02:00
|
|
|
// CHECK: movsl # encoding: [0xa5]
|
|
|
|
// CHECK: movsl
|
|
|
|
// CHECK: movsl
|
2011-03-18 12:59:40 +01:00
|
|
|
movsl
|
|
|
|
movsl %ds:(%rsi), %es:(%rdi)
|
|
|
|
movsl (%rsi), %es:(%rdi)
|
2012-03-13 20:47:55 +01:00
|
|
|
// rdar://10883092
|
2013-07-23 03:50:47 +02:00
|
|
|
// CHECK: movsl
|
2012-03-13 20:47:55 +01:00
|
|
|
movsl (%rsi), (%rdi)
|
2011-03-18 12:59:40 +01:00
|
|
|
|
|
|
|
// CHECK: movsq # encoding: [0x48,0xa5]
|
|
|
|
// CHECK: movsq
|
|
|
|
// CHECK: movsq
|
|
|
|
movsq
|
|
|
|
movsq %ds:(%rsi), %es:(%rdi)
|
|
|
|
movsq (%rsi), %es:(%rdi)
|
|
|
|
|
|
|
|
// CHECK: lodsb # encoding: [0xac]
|
|
|
|
// CHECK: lodsb
|
|
|
|
// CHECK: lodsb
|
|
|
|
// CHECK: lodsb
|
|
|
|
// CHECK: lodsb
|
|
|
|
lodsb
|
|
|
|
lodsb %ds:(%rsi), %al
|
|
|
|
lodsb (%rsi), %al
|
|
|
|
lods %ds:(%rsi), %al
|
|
|
|
lods (%rsi), %al
|
|
|
|
|
|
|
|
// CHECK: lodsw # encoding: [0x66,0xad]
|
|
|
|
// CHECK: lodsw
|
|
|
|
// CHECK: lodsw
|
|
|
|
// CHECK: lodsw
|
|
|
|
// CHECK: lodsw
|
|
|
|
lodsw
|
|
|
|
lodsw %ds:(%rsi), %ax
|
|
|
|
lodsw (%rsi), %ax
|
|
|
|
lods %ds:(%rsi), %ax
|
|
|
|
lods (%rsi), %ax
|
|
|
|
|
|
|
|
// CHECK: lodsl # encoding: [0xad]
|
|
|
|
// CHECK: lodsl
|
|
|
|
// CHECK: lodsl
|
|
|
|
// CHECK: lodsl
|
|
|
|
// CHECK: lodsl
|
|
|
|
lodsl
|
|
|
|
lodsl %ds:(%rsi), %eax
|
|
|
|
lodsl (%rsi), %eax
|
|
|
|
lods %ds:(%rsi), %eax
|
|
|
|
lods (%rsi), %eax
|
|
|
|
|
|
|
|
// CHECK: lodsq # encoding: [0x48,0xad]
|
|
|
|
// CHECK: lodsq
|
|
|
|
// CHECK: lodsq
|
|
|
|
// CHECK: lodsq
|
|
|
|
// CHECK: lodsq
|
|
|
|
lodsq
|
|
|
|
lodsq %ds:(%rsi), %rax
|
|
|
|
lodsq (%rsi), %rax
|
|
|
|
lods %ds:(%rsi), %rax
|
|
|
|
lods (%rsi), %rax
|
|
|
|
|
|
|
|
// CHECK: stosb # encoding: [0xaa]
|
|
|
|
// CHECK: stosb
|
|
|
|
// CHECK: stosb
|
|
|
|
stosb
|
|
|
|
stosb %al, %es:(%rdi)
|
|
|
|
stos %al, %es:(%rdi)
|
|
|
|
|
|
|
|
// CHECK: stosw # encoding: [0x66,0xab]
|
|
|
|
// CHECK: stosw
|
|
|
|
// CHECK: stosw
|
|
|
|
stosw
|
|
|
|
stosw %ax, %es:(%rdi)
|
|
|
|
stos %ax, %es:(%rdi)
|
|
|
|
|
|
|
|
// CHECK: stosl # encoding: [0xab]
|
|
|
|
// CHECK: stosl
|
|
|
|
// CHECK: stosl
|
|
|
|
stosl
|
|
|
|
stosl %eax, %es:(%rdi)
|
|
|
|
stos %eax, %es:(%rdi)
|
|
|
|
|
|
|
|
// CHECK: stosq # encoding: [0x48,0xab]
|
|
|
|
// CHECK: stosq
|
|
|
|
// CHECK: stosq
|
|
|
|
stosq
|
|
|
|
stosq %rax, %es:(%rdi)
|
|
|
|
stos %rax, %es:(%rdi)
|
|
|
|
|
2011-03-04 05:06:47 +01:00
|
|
|
// CHECK: strw
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0x00,0xc8]
|
|
|
|
str %ax
|
|
|
|
|
|
|
|
// CHECK: strl
|
|
|
|
// CHECK: encoding: [0x0f,0x00,0xc8]
|
|
|
|
str %eax
|
|
|
|
|
|
|
|
// CHECK: strw
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0x00,0xc8]
|
|
|
|
str %ax
|
|
|
|
|
|
|
|
// CHECK: strq
|
|
|
|
// CHECK: encoding: [0x48,0x0f,0x00,0xc8]
|
|
|
|
str %rax
|
2011-06-22 00:45:41 +02:00
|
|
|
|
|
|
|
// CHECK: movd %rdi, %xmm0
|
|
|
|
// CHECK: encoding: [0x66,0x48,0x0f,0x6e,0xc7]
|
|
|
|
movq %rdi,%xmm0
|
|
|
|
|
|
|
|
// CHECK: movd %rdi, %xmm0
|
|
|
|
// CHECK: encoding: [0x66,0x48,0x0f,0x6e,0xc7]
|
|
|
|
movd %rdi,%xmm0
|
2011-06-23 23:07:47 +02:00
|
|
|
|
2012-08-31 02:30:30 +02:00
|
|
|
// CHECK: movd %xmm0, %rax
|
|
|
|
// CHECK: encoding: [0x66,0x48,0x0f,0x7e,0xc0]
|
|
|
|
movd %xmm0, %rax
|
|
|
|
|
2011-06-23 23:07:47 +02:00
|
|
|
// CHECK: movntil %eax, (%rdi)
|
|
|
|
// CHECK: encoding: [0x0f,0xc3,0x07]
|
|
|
|
// CHECK: movntil
|
|
|
|
movntil %eax, (%rdi)
|
|
|
|
movnti %eax, (%rdi)
|
|
|
|
|
|
|
|
// CHECK: movntiq %rax, (%rdi)
|
|
|
|
// CHECK: encoding: [0x48,0x0f,0xc3,0x07]
|
|
|
|
// CHECK: movntiq
|
|
|
|
movntiq %rax, (%rdi)
|
|
|
|
movnti %rax, (%rdi)
|
2011-07-05 20:21:20 +02:00
|
|
|
|
|
|
|
// CHECK: pclmulqdq $17, %xmm0, %xmm1
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0x3a,0x44,0xc8,0x11]
|
|
|
|
pclmulhqhqdq %xmm0, %xmm1
|
|
|
|
|
|
|
|
// CHECK: pclmulqdq $1, %xmm0, %xmm1
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0x3a,0x44,0xc8,0x01]
|
|
|
|
pclmulqdq $1, %xmm0, %xmm1
|
|
|
|
|
|
|
|
// CHECK: pclmulqdq $16, (%rdi), %xmm1
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0x3a,0x44,0x0f,0x10]
|
|
|
|
pclmullqhqdq (%rdi), %xmm1
|
|
|
|
|
|
|
|
// CHECK: pclmulqdq $0, (%rdi), %xmm1
|
|
|
|
// CHECK: encoding: [0x66,0x0f,0x3a,0x44,0x0f,0x00]
|
|
|
|
pclmulqdq $0, (%rdi), %xmm1
|
2011-10-06 08:44:41 +02:00
|
|
|
|
|
|
|
// PR10345
|
|
|
|
// CHECK: xchgq %rax, %rax
|
2011-10-07 07:35:38 +02:00
|
|
|
// CHECK: encoding: [0x48,0x90]
|
2011-10-06 08:44:41 +02:00
|
|
|
xchgq %rax, %rax
|
|
|
|
|
|
|
|
// CHECK: xchgl %eax, %eax
|
|
|
|
// CHECK: encoding: [0x87,0xc0]
|
|
|
|
xchgl %eax, %eax
|
|
|
|
|
|
|
|
// CHECK: xchgw %ax, %ax
|
2011-10-07 07:35:38 +02:00
|
|
|
// CHECK: encoding: [0x66,0x90]
|
2011-10-06 08:44:41 +02:00
|
|
|
xchgw %ax, %ax
|
|
|
|
|
|
|
|
// CHECK: xchgl %ecx, %eax
|
|
|
|
// CHECK: encoding: [0x91]
|
|
|
|
xchgl %ecx, %eax
|
|
|
|
|
|
|
|
// CHECK: xchgl %ecx, %eax
|
|
|
|
// CHECK: encoding: [0x91]
|
|
|
|
xchgl %eax, %ecx
|
2011-10-27 19:40:41 +02:00
|
|
|
|
|
|
|
// CHECK: sysexit
|
|
|
|
// CHECK: encoding: [0x0f,0x35]
|
|
|
|
sysexit
|
|
|
|
|
|
|
|
// CHECK: sysexitl
|
|
|
|
// CHECK: encoding: [0x0f,0x35]
|
|
|
|
sysexitl
|
|
|
|
|
|
|
|
// CHECK: sysexitq
|
|
|
|
// CHECK: encoding: [0x48,0x0f,0x35]
|
|
|
|
sysexitq
|
2013-04-11 06:52:28 +02:00
|
|
|
|
|
|
|
// CHECK: clac
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xca]
|
|
|
|
clac
|
|
|
|
|
|
|
|
// CHECK: stac
|
|
|
|
// CHECK: encoding: [0x0f,0x01,0xcb]
|
|
|
|
stac
|