OSDN Git Service

[mips] Expand pseudo instructions before they are emitted in
authorAkira Hatanaka <ahatanaka@mips.com>
Mon, 11 Feb 2013 22:35:40 +0000 (22:35 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Mon, 11 Feb 2013 22:35:40 +0000 (22:35 +0000)
commitb4b4fa80bab1387e50c5f1b08e1141f853d35204
treea2935042b7b865940c1cb3528bb9bfe2871b6b3b
parente9229a6a9614cbde1bff2bd6ffae3b7336db5702
[mips] Expand pseudo instructions before they are emitted in
MipsCodeEmitter.cpp.

JALR and NOP are expanded by function emitPseudoExpansionLowering, which is not
called when the old JIT is used.

This fixes the following tests which have been failing on
llvm-mips-linux builder:

LLVM :: ExecutionEngine__2003-01-04-LoopTest.ll
LLVM :: ExecutionEngine__2003-05-06-LivenessClobber.ll
LLVM :: ExecutionEngine__2003-06-04-bzip2-bug.ll
LLVM :: ExecutionEngine__2005-12-02-TailCallBug.ll
LLVM :: ExecutionEngine__2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll
LLVM :: ExecutionEngine__hello2.ll
LLVM :: ExecutionEngine__stubs.ll
LLVM :: ExecutionEngine__test-branch.ll
LLVM :: ExecutionEngine__test-call.ll
LLVM :: ExecutionEngine__test-common-symbols.ll
LLVM :: ExecutionEngine__test-loadstore.ll
LLVM :: ExecutionEngine__test-loop.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174912 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsCodeEmitter.cpp