Skip to content

Commit 30f023d

Browse files
committed
fixup! Add FIXMEs.
1 parent 50ac896 commit 30f023d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

llvm/test/CodeGen/RISCV/GlobalISel/iabs.ll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ declare i16 @llvm.abs.i16(i16, i1 immarg)
1313
declare i32 @llvm.abs.i32(i32, i1 immarg)
1414
declare i64 @llvm.abs.i64(i64, i1 immarg)
1515

16+
; FIXME: Could combine back to back srais.
1617
define 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.
5254
define i16 @abs16(i16 %x) {
5355
; RV32I-LABEL: abs16:
5456
; RV32I: # %bb.0:

llvm/test/CodeGen/RISCV/GlobalISel/shift.ll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
5051
define 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.
7072
define i16 @test_ashr_i48_2(i48 %x, i48 %y) {
7173
; RV32-LABEL: test_ashr_i48_2:
7274
; RV32: # %bb.0:

0 commit comments

Comments
 (0)