[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)
commitbf1af1acc7c6215419b20d0eb6c1a19e2d9665d3
tree377a7c5b5b48793ebdb3ec3c725e464279327345
parent92ed7006fe8a05ce0f74e40c4cef6ed41898685e
[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

llvm-svn: 174912
llvm/lib/Target/Mips/MipsCodeEmitter.cpp