From 634295bcb62646ea75dfe2248dc5a9d4b9d33ff1 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 28 Jan 2014 23:13:30 +0000 Subject: 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 --- test/MC/X86/fixup-cpu-mode.s | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/MC/X86/fixup-cpu-mode.s (limited to 'test/MC/X86/fixup-cpu-mode.s') 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 + -- cgit v1.2.3