[PATCH] D68360: PR41162 Implement LKK remainder and divisibility algorithms [urem]
Tim Gymnich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 9 09:03:21 PDT 2019
TG908 marked an inline comment as done.
TG908 added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:4922
+ // Check to see if we can do this.
+ if (!isTypeLegal(VT) || !isTypeLegal(FVT))
+ return SDValue();
----------------
This right here seems to fail on riscv64 +m with:
```
(lldb) p FVT
(llvm::EVT) $1 = {
V = (SimpleTy = i64)
LLVMTy = 0x0000000000000000
}
```
```
(lldb) p VT
(llvm::EVT) $2 = {
V = (SimpleTy = i32)
LLVMTy = 0x0000000000000000
}
```
Those types should be legal right? What am I missing?
```
(lldb) expr isTypeLegal(VT)
(bool) $5 = false
(lldb) expr isTypeLegal(FVT)
(bool) $6 = true
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68360/new/
https://reviews.llvm.org/D68360
More information about the llvm-commits
mailing list