Home | History | Annotate | Download | only in X86
      1 // RUN: llvm-mc -x86-asm-syntax=intel -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
      2 
      3 // CHECK: encoding: [0x66,0x83,0xf0,0x0c]
      4 	xor	ax, 12
      5 // CHECK: encoding: [0x83,0xf0,0x0c]
      6 	xor	eax, 12
      7 // CHECK: encoding: [0x48,0x83,0xf0,0x0c]
      8 	xor	rax, 12
      9 
     10 // CHECK: encoding: [0x66,0x83,0xc8,0x0c]
     11 	or	ax, 12
     12 // CHECK: encoding: [0x83,0xc8,0x0c]
     13 	or	eax, 12
     14 // CHECK: encoding: [0x48,0x83,0xc8,0x0c]
     15 	or	rax, 12
     16 
     17 // CHECK: encoding: [0x66,0x83,0xf8,0x0c]
     18 	cmp	ax, 12
     19 // CHECK: encoding: [0x83,0xf8,0x0c]
     20 	cmp	eax, 12
     21 // CHECK: encoding: [0x48,0x83,0xf8,0x0c]
     22 	cmp	rax, 12
     23 
     24 // CHECK: encoding: [0x48,0x89,0x44,0x24,0xf0]
     25 	mov	QWORD PTR [RSP - 16], RAX
     26 
     27 // CHECK: encoding: [0x66,0x83,0xc0,0xf4]
     28 	add	ax, -12
     29 // CHECK: encoding: [0x83,0xc0,0xf4]
     30 	add	eax, -12
     31 // CHECK: encoding: [0x48,0x83,0xc0,0xf4]
     32 	add	rax, -12
     33 
     34 // CHECK: encoding: [0x66,0x83,0xd0,0xf4]
     35 	adc	ax, -12
     36 // CHECK: encoding: [0x83,0xd0,0xf4]
     37 	adc	eax, -12
     38 // CHECK: encoding: [0x48,0x83,0xd0,0xf4]
     39 	adc	rax, -12
     40 
     41 // CHECK: encoding: [0x66,0x83,0xd8,0xf4]
     42 	sbb	ax, -12
     43 // CHECK: encoding: [0x83,0xd8,0xf4]
     44 	sbb	eax, -12
     45 // CHECK: encoding: [0x48,0x83,0xd8,0xf4]
     46 	sbb	rax, -12
     47 
     48 // CHECK: encoding: [0x66,0x83,0xf8,0xf4]
     49 	cmp	ax, -12
     50 // CHECK: encoding: [0x83,0xf8,0xf4]
     51 	cmp	eax, -12
     52 // CHECK: encoding: [0x48,0x83,0xf8,0xf4]
     53 	cmp	rax, -12
     54 
     55 LBB0_3:
     56 // CHECK: encoding: [0xeb,A]
     57 	jmp	LBB0_3
     58 // CHECK: encoding: [0xf2,0x0f,0x10,0x2c,0x25,0xf8,0xff,0xff,0xff]
     59         movsd   XMM5, QWORD PTR [-8]
     60 
     61 // CHECK: encoding: [0xd1,0xe7]
     62 	shl	EDI, 1
     63 
     64 // CHECK: encoding: [0x0f,0xc2,0xd1,0x01]
     65 	cmpltps XMM2, XMM1
     66 
     67 // CHECK: encoding: [0xc3]
     68     ret
     69 
     70 // CHECK: encoding: [0xcb]
     71     retf
     72 
     73 // CHECK: encoding: [0xc2,0x08,0x00]
     74     ret 8
     75 
     76 // CHECK: encoding: [0xca,0x08,0x00]
     77     retf 8
     78 
     79