OSDN Git Service

[SubZero] Generate relocations for MIPS
authorJaydeep Patil <jaydeep.patil@imgtec.com>
Fri, 28 Oct 2016 12:30:54 +0000 (05:30 -0700)
committerJim Stichnoth <stichnot@chromium.org>
Fri, 28 Oct 2016 12:30:54 +0000 (05:30 -0700)
commit130aca718ed16be20e616e591a53de1d69f00d12
treec0d908cd0921357a3eca9f2b36d9aba901b87154
parent0dabe18f9251b797cbc6aa9c014a7a79e58fae07
[SubZero] Generate relocations for MIPS

The patch generate Hi, Lo, Jal and data relocations. Instruction encoding of instructions like ldc1, sdc1 etc. has been added.

Following tests from cross-test framework were tested successfully: (non-vector, OBJ mode, Om1, O2)

mem_intrin
TotalTests=114300 Passes=114300 Failures=0

simple_loop
TotalTests=102 Passes=102 Failures=0

test_arith
TotalTests=49489704 Passes=49489704 Failures=0

test_bitmanip
TotalTests=1200 Passes=1200 Failures=0

test_cast
TotalTests=7444 Passes=7444 Failures=0

test_fcmp
TotalTests=123904 Passes=123904 Failures=0

test_global
TotalTests=270 Passes=270 Failures=0

test_icmp
TotalTests=3341520 Passes=3341520 Failures=0

test_strengthreduce
TotalTests=240 Passes=240 Failures=0

Following tests are disabled as they are either all-vectors or contain unimplemented intrinsic lowering:

test_calling_conv
test_select
test_stacksave
test_sync_atomic
test_vector_ops

R=stichnot@chromium.org

Review URL: https://codereview.chromium.org/2446273003 .

Patch from Jaydeep Patil <jaydeep.patil@imgtec.com>.
src/IceAssemblerMIPS32.cpp
src/IceAssemblerMIPS32.h
src/IceInstMIPS32.cpp
src/IceInstMIPS32.h
src/IceTargetLoweringMIPS32.cpp
src/IceTargetLoweringMIPS32.h
src/IceTypes.def
tests_lit/assembler/mips32/encoding_test_arith_fp.ll