1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +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 [RISCV] Update the version number to v0.10 for vector. 2021-01-30 07:20:05 +08:00
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 [RISCV] Add support for printing pcrel immediates as absolute addresses in llvm-objdump 2020-12-04 10:34:12 -08:00
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 [NFC] Disallow unused prefixes under llvm/test 2021-01-21 20:31:52 -08:00
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 [RISCV] Add support for printing pcrel immediates as absolute addresses in llvm-objdump 2020-12-04 10:34:12 -08:00
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 [RISCV] Support Zfh half-precision floating-point extension. 2020-12-03 09:16:33 +08:00
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 [RISCV] Add B extension tests to make sure RV64 only instructions aren't accepted in RV32. 2021-01-22 13:52:26 -08:00
rv32zba-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv32zbb-invalid.s [RISCV] Add B extension tests to make sure RV64 only instructions aren't accepted in RV32. 2021-01-22 13:52:26 -08:00
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 [RISCV] Add B extension tests to make sure RV64 only instructions aren't accepted in RV32. 2021-01-22 13:52:26 -08:00
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 [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv32zbc-invalid.s
rv32zbc-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv32zbe-invalid.s [RISCV] Add B extension tests to make sure RV64 only instructions aren't accepted in RV32. 2021-01-22 13:52:26 -08:00
rv32zbe-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv32zbf-invalid.s [RISCV] Add B extension tests to make sure RV64 only instructions aren't accepted in RV32. 2021-01-22 13:52:26 -08:00
rv32zbf-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv32zbp-invalid.s [RISCV] Remove SRO* and SLO* instructions from bitmanip. 2021-02-09 09:35:05 -08:00
rv32zbp-only-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv32zbp-valid.s [RISCV] Remove SRO* and SLO* instructions from bitmanip. 2021-02-09 09:35:05 -08:00
rv32zbproposedc-invalid.s [RISCV] Add B extension tests to make sure RV64 only instructions aren't accepted in RV32. 2021-01-22 13:52:26 -08:00
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 [RISCV] Add B extension tests to make sure RV64 only instructions aren't accepted in RV32. 2021-01-22 13:52:26 -08:00
rv32zbr-valid.s [RISCV] Fix unused check prefixes in test/MC/RISCV/ 2020-10-29 21:18:30 -07:00
rv32zbs-invalid.s [RISCV] Add B extension tests to make sure RV64 only instructions aren't accepted in RV32. 2021-01-22 13:52:26 -08:00
rv32zbs-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv32zbt-invalid.s [RISCV] Add B extension tests to make sure RV64 only instructions aren't accepted in RV32. 2021-01-22 13:52:26 -08:00
rv32zbt-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv32zfh-invalid.s [RISCV] Support Zfh half-precision floating-point extension. 2020-12-03 09:16:33 +08:00
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 [RISCV] Add support for printing pcrel immediates as absolute addresses in llvm-objdump 2020-12-04 10:34:12 -08:00
rv64-relaxation.s [RISCV] Add support for printing pcrel immediates as absolute addresses in llvm-objdump 2020-12-04 10:34:12 -08:00
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 [RISCV] Add SH*ADD(.UW) instructions to Zba extension based on 0.93 bitmanip spec. 2021-01-22 12:49:10 -08:00
rv64zba-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv64zbb-invalid.s [RISCV] Move Shift Ones instructions from Zbb to Zbp to match 0.93 bitmanip spec. 2021-01-22 12:49:10 -08:00
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 [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv64zbe-invalid.s [RISCV] Rename Zbs instructions to start with just 'b' instead of 'sb' to match 0.93 bitmanip spec. 2021-01-22 12:49:10 -08:00
rv64zbe-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv64zbf-invalid.s
rv64zbf-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv64zbm-invalid.s
rv64zbm-valid.s [RISCV] Fix unused check prefixes in test/MC/RISCV/ 2020-10-29 21:18:30 -07:00
rv64zbp-invalid.s [RISCV] Remove SRO* and SLO* instructions from bitmanip. 2021-02-09 09:35:05 -08:00
rv64zbp-valid.s [RISCV] Remove SRO* and SLO* instructions from bitmanip. 2021-02-09 09:35:05 -08:00
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 [RISCV] Add B extension tests to make sure RV64 only instructions aren't accepted in RV32. 2021-01-22 13:52:26 -08:00
rv64zbs-invalid.s [RISCV] Rename Zbs instructions to start with just 'b' instead of 'sb' to match 0.93 bitmanip spec. 2021-01-22 12:49:10 -08:00
rv64zbs-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv64zbt-invalid.s
rv64zbt-valid.s [RISCV] Add rv64 run lines to rv32 MC layer tests for B extension 2021-01-26 17:20:05 -08:00
rv64zfh-invalid.s [RISCV] Support Zfh half-precision floating-point extension. 2020-12-03 09:16:33 +08:00
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 [RISCVAsmParser] Allow a SymbolRef operand to be a complex expression 2020-12-01 16:08:09 -08:00
rvi-pseudos.s [RISCVAsmParser] Allow a SymbolRef operand to be a complex expression 2020-12-01 16:08:09 -08:00
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 [RISCV] Support Zfh half-precision floating-point extension. 2020-12-03 09:16:33 +08:00
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