After applying this patchset, we can pass ret0.ll now. But we have some issues, described latter. Chen Wei-Ren (3): Add InstRI for RI-format instruction Add immediate value support Add ret imm support lib/Target/UniCore/UniCoreISelLowering.cpp | 2 - lib/Target/UniCore/UniCoreInstrFormats.td | 12 +++++ lib/Target/UniCore/UniCoreInstrInfo.td | 72 +++++++++++++++++++++++++++- 3 files changed, 82 insertions(+), 4 deletions(-) -- 1.7.3.4