aboutsummaryrefslogtreecommitdiff
path: root/test/MC/X86/CLFSH-32.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/X86/CLFSH-32.s')
-rw-r--r--test/MC/X86/CLFSH-32.s26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/MC/X86/CLFSH-32.s b/test/MC/X86/CLFSH-32.s
new file mode 100644
index 000000000000..898569ec2df6
--- /dev/null
+++ b/test/MC/X86/CLFSH-32.s
@@ -0,0 +1,26 @@
+// RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck %s
+
+// CHECK: clflush -485498096(%edx,%eax,4)
+// CHECK: encoding: [0x0f,0xae,0xbc,0x82,0x10,0xe3,0x0f,0xe3]
+clflush -485498096(%edx,%eax,4)
+
+// CHECK: clflush 485498096(%edx,%eax,4)
+// CHECK: encoding: [0x0f,0xae,0xbc,0x82,0xf0,0x1c,0xf0,0x1c]
+clflush 485498096(%edx,%eax,4)
+
+// CHECK: clflush 485498096(%edx)
+// CHECK: encoding: [0x0f,0xae,0xba,0xf0,0x1c,0xf0,0x1c]
+clflush 485498096(%edx)
+
+// CHECK: clflush 485498096
+// CHECK: encoding: [0x0f,0xae,0x3d,0xf0,0x1c,0xf0,0x1c]
+clflush 485498096
+
+// CHECK: clflush 64(%edx,%eax)
+// CHECK: encoding: [0x0f,0xae,0x7c,0x02,0x40]
+clflush 64(%edx,%eax)
+
+// CHECK: clflush (%edx)
+// CHECK: encoding: [0x0f,0xae,0x3a]
+clflush (%edx)
+