mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Fix a bug in ANY_EXTEND handling that was breaking 403.gcc on X86-64 in fast isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56117 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
af8bc26449
commit
ac34a00fe0
@ -271,8 +271,13 @@ X86FastISel::X86FastEmitStore(MVT VT, unsigned Val,
|
||||
bool X86FastISel::X86FastEmitExtend(ISD::NodeType Opc, MVT DstVT,
|
||||
unsigned Src, MVT SrcVT,
|
||||
unsigned &ResultReg) {
|
||||
ResultReg = FastEmit_r(SrcVT.getSimpleVT(), DstVT.getSimpleVT(), Opc, Src);
|
||||
return ResultReg != 0;
|
||||
unsigned RR = FastEmit_r(SrcVT.getSimpleVT(), DstVT.getSimpleVT(), Opc, Src);
|
||||
|
||||
if (RR != 0) {
|
||||
ResultReg = RR;
|
||||
return true;
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
|
||||
/// X86SelectConstAddr - Select and emit code to materialize constant address.
|
||||
|
Loading…
Reference in New Issue
Block a user