1// RUN: llvm-mc -triple x86_64-unknown-unknown -x86-asm-syntax=intel -mcpu=knl --show-encoding %s | FileCheck %s
2
3// CHECK: vaddps (%rax), %zmm1, %zmm1
4// CHECK: encoding: [0x62,0xf1,0x74,0x48,0x58,0x08]
5vaddps zmm1, zmm1, zmmword ptr [rax]
6
7// CHECK: vaddpd  %zmm2, %zmm1, %zmm1
8// CHECK:  encoding: [0x62,0xf1,0xf5,0x48,0x58,0xca]
9vaddpd zmm1,zmm1,zmm2
10
11// CHECK: vaddpd  %zmm2, %zmm1, %zmm1 {%k5}
12// CHECK:  encoding: [0x62,0xf1,0xf5,0x4d,0x58,0xca]
13vaddpd zmm1{k5},zmm1,zmm2
14
15// CHECK: vaddpd  %zmm2, %zmm1, %zmm1 {%k5} {z}
16// CHECK:  encoding: [0x62,0xf1,0xf5,0xcd,0x58,0xca]
17vaddpd zmm1{k5} {z},zmm1,zmm2
18
19// CHECK: vaddpd  {rn-sae}, %zmm2, %zmm1, %zmm1
20// CHECK:  encoding: [0x62,0xf1,0xf5,0x18,0x58,0xca]
21vaddpd zmm1,zmm1,zmm2,{rn-sae}
22
23// CHECK: vaddpd  {ru-sae}, %zmm2, %zmm1, %zmm1
24// CHECK:  encoding: [0x62,0xf1,0xf5,0x58,0x58,0xca]
25vaddpd zmm1,zmm1,zmm2,{ru-sae}
26
27// CHECK:  vaddpd  {rd-sae}, %zmm2, %zmm1, %zmm1
28// CHECK:  encoding: [0x62,0xf1,0xf5,0x38,0x58,0xca]
29vaddpd zmm1,zmm1,zmm2,{rd-sae}
30
31// CHECK: vaddpd  {rz-sae}, %zmm2, %zmm1, %zmm1
32// CHECK:  encoding: [0x62,0xf1,0xf5,0x78,0x58,0xca]
33vaddpd zmm1,zmm1,zmm2,{rz-sae}
34
35