1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/MC/RISCV
Craig Topper a2254d3fcc [RISCV] Teach RISCVMatInt about cases where it can use LUI+SLLI to replace LUI+ADDI+SLLI for large constants.
If we need to shift left anyway we might be able to take advantage
of LUI implicitly shifting its immediate left by 12 to cover part
of the shift. This allows us to use more bits of the LUI immediate
to avoid an ADDI.

isDesirableToCommuteWithShift now considers compressed instruction
opportunities when deciding if commuting should be allowed.

I believe this is the same or similar to one of the optimizations
from D79492.

Reviewed By: luismarques, arcbbb

Differential Revision: https://reviews.llvm.org/D105417
2021-07-20 09:22:06 -07:00
..
rvv [RISCV] Fix failing RVV MC tests 2021-06-09 09:47:18 +01:00
align.s
attribute-arch.s
attribute-with-insts.s
attribute-with-option.s
attribute.s
cfi-regs-invalid.s
cfi-regs-valid.s
cnop.s
compress-cjal.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
compress-debug-info.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
compress-rv32b.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
compress-rv32d.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
compress-rv32f.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
compress-rv32i.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
compress-rv64b.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
compress-rv64i.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
compressed-relocations.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
csr-aliases.s
data-directives-invalid.s [MC] Remove unneeded "in '.xxx' directive" from diagnostics 2021-05-04 13:30:29 -07:00
data-directives-valid.s
debug-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
deprecated-csr-names.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
elf-flags.s
elf-header.s
empty-string.s
expressions.s RISCV: clean up target expression handling 2021-06-17 13:35:32 -07:00
fde-reloc.s RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
fixups-compressed.s
fixups-diagnostics.s
fixups-expr.s RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
fixups-invalid.s
fixups.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
function-call-invalid.s
function-call.s
hilo-constaddr-expr.s RISCV: simplify a test case for RISCV (NFCI) 2021-06-18 08:19:16 -07:00
hilo-constaddr.s [RISCV][NFC] Fix some whitespace nits in MC test RUN lines 2021-05-26 21:03:18 +01:00
invalid-attribute.s
invalid-instruction-spellcheck.s
linker-relaxation.s
lit.local.cfg
lla-invalid.s
machine-csr-names-invalid.s [RISCV][NFC] Fix some whitespace nits in MC test RUN lines 2021-05-26 21:03:18 +01:00
machine-csr-names.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
mattr-invalid-combination.s
numeric-reg-names-d.s [llvm-mc] Add -M to replace -riscv-no-aliases and -riscv-arch-reg-names 2021-05-26 10:43:32 -07:00
numeric-reg-names-f.s [llvm-mc] Add -M to replace -riscv-no-aliases and -riscv-arch-reg-names 2021-05-26 10:43:32 -07:00
numeric-reg-names.s [llvm-mc] Add -M to replace -riscv-no-aliases and -riscv-arch-reg-names 2021-05-26 10:43:32 -07:00
option-invalid.s [RISCV][NFC] Fix some whitespace nits in MC test RUN lines 2021-05-26 21:03:18 +01:00
option-mix.s
option-nopic.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
option-pic.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
option-pushpop.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
option-relax.s
option-rvc.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
pcrel-fixups.s
pcrel-lo12-invalid.s
priv-invalid.s
priv-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
pseudo-jump-invalid.s
pseudo-jump.s
reloc-addend.s RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
reloc-directive-err.s
reloc-directive.s [MC][RISCV] Support .reloc *, BFD_RELOC_{NONE,32,64}, * 2021-03-05 21:45:11 -08:00
relocations.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32-machine-csr-names.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32-relaxation.s
rv32-user-csr-names.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32a-invalid.s
rv32a-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32b-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32c-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32c-fuzzed-invalid.s
rv32c-invalid.s
rv32c-only-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32c-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32d-invalid.s
rv32d-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32dc-invalid.s
rv32dc-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32e-invalid.s
rv32e-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32f-invalid.s
rv32f-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32fc-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32fc-invalid.s
rv32fc-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32i-aliases-invalid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32i-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32i-invalid.s
rv32i-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32m-invalid.s
rv32m-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32zba-invalid.s
rv32zba-valid.s
rv32zbb-invalid.s
rv32zbb-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32zbbp-invalid.s
rv32zbbp-only-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32zbbp-valid.s
rv32zbc-invalid.s
rv32zbc-valid.s
rv32zbe-invalid.s
rv32zbe-valid.s
rv32zbf-invalid.s
rv32zbf-valid.s
rv32zbp-invalid.s
rv32zbp-only-valid.s
rv32zbp-valid.s
rv32zbproposedc-invalid.s
rv32zbproposedc-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv32zbr-invalid.s
rv32zbr-valid.s
rv32zbs-invalid.s
rv32zbs-valid.s
rv32zbt-invalid.s
rv32zbt-valid.s
rv32zfh-invalid.s
rv32zfh-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64-machine-csr-names.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64-relax-all.s
rv64-relaxation.s
rv64-user-csr-names.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64a-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64a-invalid.s
rv64a-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64b-aliases-valid.s [RISCV] Teach constant materialization that it can use zext.w at the end with Zba to reduce number of instructions. 2021-07-16 09:35:56 -07:00
rv64c-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64c-hints-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64c-invalid.s
rv64c-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64d-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64d-invalid.s
rv64d-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64dc-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64f-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64f-invalid.s
rv64f-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64i-aliases-invalid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64i-aliases-valid.s [RISCV] Teach RISCVMatInt about cases where it can use LUI+SLLI to replace LUI+ADDI+SLLI for large constants. 2021-07-20 09:22:06 -07:00
rv64i-invalid.s
rv64i-pseudos.s
rv64i-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64m-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64zba-invalid.s
rv64zba-valid.s
rv64zbb-invalid.s
rv64zbb-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64zbbp-invalid.s
rv64zbbp-valid.s
rv64zbe-invalid.s
rv64zbe-valid.s
rv64zbf-invalid.s
rv64zbf-valid.s
rv64zbm-invalid.s
rv64zbm-valid.s
rv64zbp-invalid.s
rv64zbp-valid.s
rv64zbproposedc-invalid.s
rv64zbproposedc-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rv64zbr-invalid.s
rv64zbr-valid.s
rv64zbs-invalid.s
rv64zbs-valid.s
rv64zbt-invalid.s
rv64zbt-valid.s
rv64zfh-invalid.s
rv64zfh-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rva-aliases-invalid.s
rva-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rvc-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rvc-hints-invalid.s
rvc-hints-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rvd-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rvd-pseudos.s
rvdc-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rvf-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rvf-pseudos.s
rvf-user-csr-names.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rvi-aliases-valid.s [llvm-mc] Add -M to replace -riscv-no-aliases and -riscv-arch-reg-names 2021-05-26 10:43:32 -07:00
rvi-alternate-abi-names.s
rvi-pseudos-invalid.s
rvi-pseudos.s
rvv-user-csr-names.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rvzfh-aliases-valid.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
rvzfh-pseudos.s
scoped-relaxation.s RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
supervisor-csr-names.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
tail-call-invalid.s
tail-call.s
target-abi-invalid.s
target-abi-valid.s
user-csr-names-invalid.s [RISCV][NFC] Fix some whitespace nits in MC test RUN lines 2021-05-26 21:03:18 +01:00
user-csr-names.s Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00