File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
llvm/test/CodeGen/RISCV/GlobalISel Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ declare i16 @llvm.abs.i16(i16, i1 immarg)
1313declare i32 @llvm.abs.i32 (i32 , i1 immarg)
1414declare i64 @llvm.abs.i64 (i64 , i1 immarg)
1515
16+ ; FIXME: Could combine back to back srais.
1617define i8 @abs8 (i8 %x ) {
1718; RV32I-LABEL: abs8:
1819; RV32I: # %bb.0:
@@ -49,6 +50,7 @@ define i8 @abs8(i8 %x) {
4950 ret i8 %abs
5051}
5152
53+ ; FIXME: Could combine back to back srais.
5254define i16 @abs16 (i16 %x ) {
5355; RV32I-LABEL: abs16:
5456; RV32I: # %bb.0:
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ define i16 @test_shl_i48(i48 %x) {
4747 ret i16 %trunc
4848}
4949
50+ ; FIXME: Could use srlw to remove slli+srli.
5051define i16 @test_lshr_i48_2 (i48 %x , i48 %y ) {
5152; RV32-LABEL: test_lshr_i48_2:
5253; RV32: # %bb.0:
@@ -67,6 +68,7 @@ define i16 @test_lshr_i48_2(i48 %x, i48 %y) {
6768 ret i16 %trunc
6869}
6970
71+ ; FIXME: Could use sraw to remove the sext.w.
7072define i16 @test_ashr_i48_2 (i48 %x , i48 %y ) {
7173; RV32-LABEL: test_ashr_i48_2:
7274; RV32: # %bb.0:
You can’t perform that action at this time.
0 commit comments