Debian Codegraph @

llvm/test/MC/X86/apx/sar-encopt.s

raw
1 # RUN: llvm-mc -triple x86_64 -show-encoding %s | FileCheck %s
2
3 # CHECK: {evex} sarb %al
4 # CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xd0,0xf8]
5 {evex} sarb $1, %al
6 # CHECK: {evex} sarw %ax
7 # CHECK: encoding: [0x62,0xf4,0x7d,0x08,0xd1,0xf8]
8 {evex} sarw $1, %ax
9 # CHECK: {evex} sarl %eax
10 # CHECK: encoding: [0x62,0xf4,0x7c,0x08,0xd1,0xf8]
11 {evex} sarl $1, %eax
12 # CHECK: {evex} sarq %rax
13 # CHECK: encoding: [0x62,0xf4,0xfc,0x08,0xd1,0xf8]
14 {evex} sarq $1, %rax
15 # CHECK: {nf} sarb %al
16 # CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xd0,0xf8]
17 {nf} sarb $1, %al
18 # CHECK: {nf} sarw %ax
19 # CHECK: encoding: [0x62,0xf4,0x7d,0x0c,0xd1,0xf8]
20 {nf} sarw $1, %ax
21 # CHECK: {nf} sarl %eax
22 # CHECK: encoding: [0x62,0xf4,0x7c,0x0c,0xd1,0xf8]
23 {nf} sarl $1, %eax
24 # CHECK: {nf} sarq %rax
25 # CHECK: encoding: [0x62,0xf4,0xfc,0x0c,0xd1,0xf8]
26 {nf} sarq $1, %rax
27 # CHECK: sarb %al, %bl
28 # CHECK: encoding: [0x62,0xf4,0x64,0x18,0xd0,0xf8]
29 sarb $1, %al, %bl
30 # CHECK: sarw %ax, %bx
31 # CHECK: encoding: [0x62,0xf4,0x65,0x18,0xd1,0xf8]
32 sarw $1, %ax, %bx
33 # CHECK: sarl %eax, %ebx
34 # CHECK: encoding: [0x62,0xf4,0x64,0x18,0xd1,0xf8]
35 sarl $1, %eax, %ebx
36 # CHECK: sarq %rax, %rbx
37 # CHECK: encoding: [0x62,0xf4,0xe4,0x18,0xd1,0xf8]
38 sarq $1, %rax, %rbx
39 # CHECK: {nf} sarb %al, %bl
40 # CHECK: encoding: [0x62,0xf4,0x64,0x1c,0xd0,0xf8]
41 {nf} sarb $1, %al, %bl
42 # CHECK: {nf} sarw %ax, %bx
43 # CHECK: encoding: [0x62,0xf4,0x65,0x1c,0xd1,0xf8]
44 {nf} sarw $1, %ax, %bx
45 # CHECK: {nf} sarl %eax, %ebx
46 # CHECK: encoding: [0x62,0xf4,0x64,0x1c,0xd1,0xf8]
47 {nf} sarl $1, %eax, %ebx
48 # CHECK: {nf} sarq %rax, %rbx
49 # CHECK: encoding: [0x62,0xf4,0xe4,0x1c,0xd1,0xf8]
50 {nf} sarq $1, %rax, %rbx
51 # CHECK: {evex} sarb 123(%r8,%rax,4)
52 # CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xd0,0x7c,0x80,0x7b]
53 {evex} sarb $1, 123(%r8,%rax,4)
54 # CHECK: {evex} sarw 123(%r8,%rax,4)
55 # CHECK: encoding: [0x62,0xd4,0x7d,0x08,0xd1,0x7c,0x80,0x7b]
56 {evex} sarw $1, 123(%r8,%rax,4)
57 # CHECK: {evex} sarl 123(%r8,%rax,4)
58 # CHECK: encoding: [0x62,0xd4,0x7c,0x08,0xd1,0x7c,0x80,0x7b]
59 {evex} sarl $1, 123(%r8,%rax,4)
60 # CHECK: {evex} sarq 123(%r8,%rax,4)
61 # CHECK: encoding: [0x62,0xd4,0xfc,0x08,0xd1,0x7c,0x80,0x7b]
62 {evex} sarq $1, 123(%r8,%rax,4)
63 # CHECK: {nf} sarb 123(%r8,%rax,4)
64 # CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xd0,0x7c,0x80,0x7b]
65 {nf} sarb $1, 123(%r8,%rax,4)
66 # CHECK: {nf} sarw 123(%r8,%rax,4)
67 # CHECK: encoding: [0x62,0xd4,0x7d,0x0c,0xd1,0x7c,0x80,0x7b]
68 {nf} sarw $1, 123(%r8,%rax,4)
69 # CHECK: {nf} sarl 123(%r8,%rax,4)
70 # CHECK: encoding: [0x62,0xd4,0x7c,0x0c,0xd1,0x7c,0x80,0x7b]
71 {nf} sarl $1, 123(%r8,%rax,4)
72 # CHECK: {nf} sarq 123(%r8,%rax,4)
73 # CHECK: encoding: [0x62,0xd4,0xfc,0x0c,0xd1,0x7c,0x80,0x7b]
74 {nf} sarq $1, 123(%r8,%rax,4)
75 # CHECK: sarb 123(%r8,%rax,4), %bl
76 # CHECK: encoding: [0x62,0xd4,0x64,0x18,0xd0,0x7c,0x80,0x7b]
77 sarb $1, 123(%r8,%rax,4), %bl
78 # CHECK: sarw 123(%r8,%rax,4), %bx
79 # CHECK: encoding: [0x62,0xd4,0x65,0x18,0xd1,0x7c,0x80,0x7b]
80 sarw $1, 123(%r8,%rax,4), %bx
81 # CHECK: sarl 123(%r8,%rax,4), %ebx
82 # CHECK: encoding: [0x62,0xd4,0x64,0x18,0xd1,0x7c,0x80,0x7b]
83 sarl $1, 123(%r8,%rax,4), %ebx
84 # CHECK: sarq 123(%r8,%rax,4), %rbx
85 # CHECK: encoding: [0x62,0xd4,0xe4,0x18,0xd1,0x7c,0x80,0x7b]
86 sarq $1, 123(%r8,%rax,4), %rbx
87 # CHECK: {nf} sarb 123(%r8,%rax,4), %bl
88 # CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xd0,0x7c,0x80,0x7b]
89 {nf} sarb $1, 123(%r8,%rax,4), %bl
90 # CHECK: {nf} sarw 123(%r8,%rax,4), %bx
91 # CHECK: encoding: [0x62,0xd4,0x65,0x1c,0xd1,0x7c,0x80,0x7b]
92 {nf} sarw $1, 123(%r8,%rax,4), %bx
93 # CHECK: {nf} sarl 123(%r8,%rax,4), %ebx
94 # CHECK: encoding: [0x62,0xd4,0x64,0x1c,0xd1,0x7c,0x80,0x7b]
95 {nf} sarl $1, 123(%r8,%rax,4), %ebx
96 # CHECK: {nf} sarq 123(%r8,%rax,4), %rbx
97 # CHECK: encoding: [0x62,0xd4,0xe4,0x1c,0xd1,0x7c,0x80,0x7b]
98 {nf} sarq $1, 123(%r8,%rax,4), %rbx