Bug 1045906 - Code emitted in wrong CPU mode after fixup relaxation
Summary: Code emitted in wrong CPU mode after fixup relaxation
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-22 21:38 UTC by David Woodhouse
Modified: 2014-12-26 00:37 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-26 00:37:56 UTC
Type: Bug


Attachments (Terms of Use)

Description David Woodhouse 2013-12-22 21:38:36 UTC
Description of problem:

// 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


Actual results:

test/MC/X86/fixup-cpu-mode.s:6:28: error: expected string not found in input
sub $edata, %r12 // CHECK: subq $0, %r12
                           ^
<stdin>:2:1: note: scanning from here
foo: file format ELF64-x86-64
^
<stdin>:6:23: note: possible intended match here
 0: 81 ec 00 00 00 00 subl $0, %esp


Expected results:

 <silence> (test success)

Additional info:

http://llvm.org/bugs/show_bug.cgi?id=18303


Note You need to log in before you can comment on or make changes to this bug.