mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 17:55:18 +00:00
Fix a bug in ANY_EXTEND handling that was breaking 403.gcc on X86-64 in fast isel.
llvm-svn: 56117
This commit is contained in:
parent
0a66a0ae55
commit
743d45821a
@ -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…
x
Reference in New Issue
Block a user