summaryrefslogtreecommitdiff
path: root/test/MC/AsmParser
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-07-21 02:46:58 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-07-21 02:46:58 +0000
commit4b13f3cf3d44219371ca8cdfe699ebdc5e12f7f8 (patch)
treea96a081165f1c30a5a441962f6f4a63ae8d73a63 /test/MC/AsmParser
parent3bdfbf5d56d52fc4c390df77f98ba2c46951b51a (diff)
downloadllvm-4b13f3cf3d44219371ca8cdfe699ebdc5e12f7f8.tar.gz
llvm-4b13f3cf3d44219371ca8cdfe699ebdc5e12f7f8.tar.bz2
llvm-4b13f3cf3d44219371ca8cdfe699ebdc5e12f7f8.tar.xz
Add new AVX vmaskmov instructions, and also fix the VEX encoding bits to support it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser')
-rw-r--r--test/MC/AsmParser/X86/x86_32-encoding.s32
-rw-r--r--test/MC/AsmParser/X86/x86_64-encoding.s32
2 files changed, 64 insertions, 0 deletions
diff --git a/test/MC/AsmParser/X86/x86_32-encoding.s b/test/MC/AsmParser/X86/x86_32-encoding.s
index 495e940c0f..daa8cb583b 100644
--- a/test/MC/AsmParser/X86/x86_32-encoding.s
+++ b/test/MC/AsmParser/X86/x86_32-encoding.s
@@ -13030,3 +13030,35 @@
// CHECK: encoding: [0xc4,0xe3,0x7d,0x19,0x10,0x07]
vextractf128 $7, %ymm2, (%eax)
+// CHECK: vmaskmovpd %xmm2, %xmm5, (%eax)
+// CHECK: encoding: [0xc4,0xe2,0x51,0x2f,0x10]
+ vmaskmovpd %xmm2, %xmm5, (%eax)
+
+// CHECK: vmaskmovpd %ymm2, %ymm5, (%eax)
+// CHECK: encoding: [0xc4,0xe2,0x55,0x2f,0x10]
+ vmaskmovpd %ymm2, %ymm5, (%eax)
+
+// CHECK: vmaskmovpd (%eax), %xmm2, %xmm5
+// CHECK: encoding: [0xc4,0xe2,0x69,0x2d,0x28]
+ vmaskmovpd (%eax), %xmm2, %xmm5
+
+// CHECK: vmaskmovpd (%eax), %ymm2, %ymm5
+// CHECK: encoding: [0xc4,0xe2,0x6d,0x2d,0x28]
+ vmaskmovpd (%eax), %ymm2, %ymm5
+
+// CHECK: vmaskmovps %xmm2, %xmm5, (%eax)
+// CHECK: encoding: [0xc4,0xe2,0x51,0x2e,0x10]
+ vmaskmovps %xmm2, %xmm5, (%eax)
+
+// CHECK: vmaskmovps %ymm2, %ymm5, (%eax)
+// CHECK: encoding: [0xc4,0xe2,0x55,0x2e,0x10]
+ vmaskmovps %ymm2, %ymm5, (%eax)
+
+// CHECK: vmaskmovps (%eax), %xmm2, %xmm5
+// CHECK: encoding: [0xc4,0xe2,0x69,0x2c,0x28]
+ vmaskmovps (%eax), %xmm2, %xmm5
+
+// CHECK: vmaskmovps (%eax), %ymm2, %ymm5
+// CHECK: encoding: [0xc4,0xe2,0x6d,0x2c,0x28]
+ vmaskmovps (%eax), %ymm2, %ymm5
+
diff --git a/test/MC/AsmParser/X86/x86_64-encoding.s b/test/MC/AsmParser/X86/x86_64-encoding.s
index bf232abe2a..5affb4e0d6 100644
--- a/test/MC/AsmParser/X86/x86_64-encoding.s
+++ b/test/MC/AsmParser/X86/x86_64-encoding.s
@@ -3104,3 +3104,35 @@ pshufb CPI1_0(%rip), %xmm1
// CHECK: encoding: [0xc4,0x63,0x7d,0x19,0x20,0x07]
vextractf128 $7, %ymm12, (%rax)
+// CHECK: vmaskmovpd %xmm12, %xmm10, (%rax)
+// CHECK: encoding: [0xc4,0x62,0x29,0x2f,0x20]
+ vmaskmovpd %xmm12, %xmm10, (%rax)
+
+// CHECK: vmaskmovpd %ymm12, %ymm10, (%rax)
+// CHECK: encoding: [0xc4,0x62,0x2d,0x2f,0x20]
+ vmaskmovpd %ymm12, %ymm10, (%rax)
+
+// CHECK: vmaskmovpd (%rax), %xmm12, %xmm10
+// CHECK: encoding: [0xc4,0x62,0x19,0x2d,0x10]
+ vmaskmovpd (%rax), %xmm12, %xmm10
+
+// CHECK: vmaskmovpd (%rax), %ymm12, %ymm10
+// CHECK: encoding: [0xc4,0x62,0x1d,0x2d,0x10]
+ vmaskmovpd (%rax), %ymm12, %ymm10
+
+// CHECK: vmaskmovps %xmm12, %xmm10, (%rax)
+// CHECK: encoding: [0xc4,0x62,0x29,0x2e,0x20]
+ vmaskmovps %xmm12, %xmm10, (%rax)
+
+// CHECK: vmaskmovps %ymm12, %ymm10, (%rax)
+// CHECK: encoding: [0xc4,0x62,0x2d,0x2e,0x20]
+ vmaskmovps %ymm12, %ymm10, (%rax)
+
+// CHECK: vmaskmovps (%rax), %xmm12, %xmm10
+// CHECK: encoding: [0xc4,0x62,0x19,0x2c,0x10]
+ vmaskmovps (%rax), %xmm12, %xmm10
+
+// CHECK: vmaskmovps (%rax), %ymm12, %ymm10
+// CHECK: encoding: [0xc4,0x62,0x1d,0x2c,0x10]
+ vmaskmovps (%rax), %ymm12, %ymm10
+