diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-08 04:53:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-08 04:53:27 +0000 |
commit | 9607c40601b345c21af9de97ec03e124179efd24 (patch) | |
tree | a8635dc1a4aefe2b7e38487e327217e725fdf2d3 /test | |
parent | 186acea74646c9f3909b1968920bed8c7ab6148b (diff) | |
download | llvm-9607c40601b345c21af9de97ec03e124179efd24.tar.gz llvm-9607c40601b345c21af9de97ec03e124179efd24.tar.bz2 llvm-9607c40601b345c21af9de97ec03e124179efd24.tar.xz |
gas accepts xchg <mem>, <reg> as a synonym for xchg <reg>, <mem>.
Add this to the mc assembler, fixing PR8061
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/X86/x86_64-new-encoder.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/MC/AsmParser/X86/x86_64-new-encoder.s b/test/MC/AsmParser/X86/x86_64-new-encoder.s index 3644147b16..7992972c98 100644 --- a/test/MC/AsmParser/X86/x86_64-new-encoder.s +++ b/test/MC/AsmParser/X86/x86_64-new-encoder.s @@ -168,3 +168,8 @@ L1: // CHECK: jrcxz L1 // CHECK: encoding: [0xe3,A] +// PR8061 +xchgl 368(%rax),%ecx +// CHECK: xchgl %ecx, 368(%rax) +xchgl %ecx, 368(%rax) +// CHECK: xchgl %ecx, 368(%rax) |