[PATCH] D140381: [PowerPC] Use Power9 test data class instruction to lower IS_FPCLASS
Qiu Chaofan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 20 02:19:32 PST 2022
qiucf added inline comments.
================
Comment at: llvm/test/CodeGen/PowerPC/is_fpclass.ll:577
-; CHECK-NEXT: li 3, 0
-; CHECK-NEXT: isellt 3, 4, 3
; CHECK-NEXT: blr
----------------
When return type is `zeroext i1`, this should be:
```
xscvdpspn 0, 1
mffprwz 3, 0
rlwinm 3, 3, 9, 23, 31
subfic 3, 3, 254
rldicl 3, 3, 1, 63
```
1 less instruction than new codegen.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140381/new/
https://reviews.llvm.org/D140381
More information about the llvm-commits
mailing list