diff options
author | David Woodhouse <dwmw2@infradead.org> | 2014-01-28 23:13:30 +0000 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2014-01-28 23:13:30 +0000 |
commit | 634295bcb62646ea75dfe2248dc5a9d4b9d33ff1 (patch) | |
tree | c33649afb1ef01ad25452bcdb820732e90e94242 /test/MC/X86/fixup-cpu-mode.s | |
parent | eab5cc34c6d13d56ecc59153598695a6ff8d3e14 (diff) | |
download | llvm-634295bcb62646ea75dfe2248dc5a9d4b9d33ff1.tar.gz llvm-634295bcb62646ea75dfe2248dc5a9d4b9d33ff1.tar.bz2 llvm-634295bcb62646ea75dfe2248dc5a9d4b9d33ff1.tar.xz |
Tests for mode switching
1. test that inlineasm works
2. test that relaxable instructions are re-encoded in the correct mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200351 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/X86/fixup-cpu-mode.s')
-rw-r--r-- | test/MC/X86/fixup-cpu-mode.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/X86/fixup-cpu-mode.s b/test/MC/X86/fixup-cpu-mode.s new file mode 100644 index 0000000000..13e0d46215 --- /dev/null +++ b/test/MC/X86/fixup-cpu-mode.s @@ -0,0 +1,8 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t +// RUN: llvm-objdump -d %t | FileCheck %s + +//PR18303 +.global edata +sub $edata, %r12 // CHECK: subq $0, %r12 +.code32 + |