[all-commits] [llvm/llvm-project] 16fb1c: [RISCV] Add i8/i16 test cases to div.ll and i8/i16...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu Feb 4 16:49:00 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 16fb1c7aaeba9a7f22e4dcc8761b1cbf1fe524c1
https://github.com/llvm/llvm-project/commit/16fb1c7aaeba9a7f22e4dcc8761b1cbf1fe524c1
Author: Craig Topper <craig.topper at sifive.com>
Date: 2021-02-04 (Thu, 04 Feb 2021)
Changed paths:
M llvm/test/CodeGen/RISCV/div.ll
M llvm/test/CodeGen/RISCV/rem.ll
Log Message:
-----------
[RISCV] Add i8/i16 test cases to div.ll and i8/i16/i64 to rem.ll. NFC
This improves our coverage of these operations and shows that we
use really large constants for division by constant on i8/i16
especially on RV64. The issue is that BuildSDIV/BuildUDIV are
limited to legal types so we have to promote to i64 before it
kicks in. At that point we've lost the range information for the
original type.
More information about the All-commits
mailing list