Add support for the X86 secure guard extensions instructions in assembler (SGX).
[oota-llvm.git] / test / MC / X86 / sgx-encoding.s
diff --git a/test/MC/X86/sgx-encoding.s b/test/MC/X86/sgx-encoding.s
new file mode 100644 (file)
index 0000000..e6ae8c9
--- /dev/null
@@ -0,0 +1,9 @@
+// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s
+
+// CHECK: encls
+// CHECK: encoding: [0x0f,0x01,0xcf]
+       encls
+
+// CHECK: enclu
+// CHECK: encoding: [0x0f,0x01,0xd7]
+       enclu