aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstrBundle.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2025-08-26 23:05:41 -0700
committerGitHub <noreply@github.com>2025-08-26 23:05:41 -0700
commit5e587b1b15feccf70a950d17ad37e3c361a9f198 (patch)
treea467f979d00d01c41d7456e9766d20f05ce1b417 /llvm/lib/CodeGen/MachineInstrBundle.cpp
parentde99aabed6664b16e5bc30edd27680a9b7ae0dd3 (diff)
downloadllvm-5e587b1b15feccf70a950d17ad37e3c361a9f198.zip
llvm-5e587b1b15feccf70a950d17ad37e3c361a9f198.tar.gz
llvm-5e587b1b15feccf70a950d17ad37e3c361a9f198.tar.bz2
[RISCV] Lower (setugt X, 2047) as (setne (srl X, 11), 0) (#155541)
This matches 4095 and other pow2-1 constants larger simm12. We normally do this through a DAGCombine controlled by isLegalICmpImmediate. 2047 is considered a legal immediate because we have a setult instruction. In this case we have setugt which isn't natively supported. I added tests for 4095 for comparison.
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstrBundle.cpp')
0 files changed, 0 insertions, 0 deletions