diff options
author | Owen Anderson <resistor@mac.com> | 2008-09-11 19:44:55 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-09-11 19:44:55 +0000 |
commit | ac34a00fe0784cd6efc466f03f93ab1017fa9726 (patch) | |
tree | 0feb78d7fd63a087107b9418a8d74bb04ebebfb1 /lib/Target | |
parent | af8bc26449249682699bbd7d107a5708fe0413a3 (diff) | |
download | llvm-ac34a00fe0784cd6efc466f03f93ab1017fa9726.tar.gz llvm-ac34a00fe0784cd6efc466f03f93ab1017fa9726.tar.bz2 llvm-ac34a00fe0784cd6efc466f03f93ab1017fa9726.tar.xz |
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
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/X86FastISel.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 981f5a7d7e..63444ca7e2 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -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. |