For rv32, we test the legalization of i8, i16 and i32. For rv64, we additionally test the legalization of i64.
This is the first of a series of commits aiming to legalize arithmetic instructions for RISCV.
Paths
| Differential D154978
[RISCV][GlobalISel] Legalize add, sub and binary logical instructions for narrow types ClosedPublic Authored by nitinjohnraj on Jul 11 2023, 8:53 AM.
Details Summary For rv32, we test the legalization of i8, i16 and i32. For rv64, we additionally test the legalization of i64. This is the first of a series of commits aiming to legalize arithmetic instructions for RISCV.
Diff Detail
Event TimelineComment Actions Can you work more information into the title to distinguish it from the other other 15 patches? nitinjohnraj retitled this revision from [RISCV][GlobalISel][1/16] Legalize integer operations to [RISCV][GlobalISel] Legalize add, sub and binary logical instructions for narrow types.Jul 11 2023, 10:40 AM
This revision is now accepted and ready to land.Jul 11 2023, 5:51 PM Closed by commit rG6a35ceaacf06: [RISCV][GlobalISel] Legalize add, sub and binary logical instructions for… (authored by nitinjohnraj). · Explain WhyJul 14 2023, 6:28 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 540610 llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-add.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-and.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-or.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-sub.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv32/legalize-xor.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-add.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-and.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-or.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-sub.mir
llvm/test/CodeGen/RISCV/GlobalISel/legalizer/rv64/legalize-xor.mir
|
Don't need -global-isel in any mir tests