From 23306deb92e2424165f2145895e21e223c3887eb Mon Sep 17 00:00:00 2001 From: Stefanus Du Toit Date: Tue, 18 Jun 2013 17:08:10 +0000 Subject: Add support for encoding the HLE XACQUIRE and XRELEASE prefixes. For decoding, keep the current behavior of always decoding these as their REP versions. In the future, this could be improved to recognize the cases where these behave as XACQUIRE and XRELEASE and decode them as such. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184207 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/X86/x86_64-hle-encoding.s | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/MC/X86/x86_64-hle-encoding.s (limited to 'test') diff --git a/test/MC/X86/x86_64-hle-encoding.s b/test/MC/X86/x86_64-hle-encoding.s new file mode 100644 index 0000000000..aaaca7d9c0 --- /dev/null +++ b/test/MC/X86/x86_64-hle-encoding.s @@ -0,0 +1,9 @@ +// RUN: llvm-mc -triple x86_64-unknown-unknown --show-encoding %s | FileCheck %s + +// CHECK: xacquire +// CHECK: [0xf2] + xacquire + +// CHECK: xrelease +// CHECK: [0xf3] + xrelease -- cgit v1.2.3