AVX-512: Add assembly parser support for Rounding mode
[oota-llvm.git] / test / MC / X86 / intel-syntax-avx512.s
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]
5 vaddps zmm1, zmm1, zmmword ptr [rax]
6
7 // CHECK: vaddpd  %zmm2, %zmm1, %zmm1
8 // CHECK:  encoding: [0x62,0xf1,0xf5,0x48,0x58,0xca]
9 vaddpd zmm1,zmm1,zmm2
10
11 // CHECK: vaddpd  %zmm2, %zmm1, %zmm1 {%k5}
12 // CHECK:  encoding: [0x62,0xf1,0xf5,0x4d,0x58,0xca]
13 vaddpd zmm1{k5},zmm1,zmm2
14
15 // CHECK: vaddpd  %zmm2, %zmm1, %zmm1 {%k5} {z}
16 // CHECK:  encoding: [0x62,0xf1,0xf5,0xcd,0x58,0xca]
17 vaddpd zmm1{k5} {z},zmm1,zmm2
18
19 // CHECK: vaddpd  {rn-sae}, %zmm2, %zmm1, %zmm1
20 // CHECK:  encoding: [0x62,0xf1,0xf5,0x18,0x58,0xca]
21 vaddpd zmm1,zmm1,zmm2,{rn-sae}
22
23 // CHECK: vaddpd  {ru-sae}, %zmm2, %zmm1, %zmm1
24 // CHECK:  encoding: [0x62,0xf1,0xf5,0x58,0x58,0xca]
25 vaddpd zmm1,zmm1,zmm2,{ru-sae}
26
27 // CHECK:  vaddpd  {rd-sae}, %zmm2, %zmm1, %zmm1
28 // CHECK:  encoding: [0x62,0xf1,0xf5,0x38,0x58,0xca]
29 vaddpd zmm1,zmm1,zmm2,{rd-sae}
30
31 // CHECK: vaddpd  {rz-sae}, %zmm2, %zmm1, %zmm1
32 // CHECK:  encoding: [0x62,0xf1,0xf5,0x78,0x58,0xca]
33 vaddpd zmm1,zmm1,zmm2,{rz-sae}
34