Bug 1045906

Summary: Code emitted in wrong CPU mode after fixup relaxation
Product: [Fedora] Fedora Reporter: David Woodhouse <dwmw2>
Component: llvmAssignee: Adam Jackson <ajax>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: ajax, bos, dmalcolm, jv+fedora, michel, petersen, scottt.tw
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-26 00:37:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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