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