Skip to content

Commit f0ff4d6

Browse files
committed
fixup! Fixup compile warning and test failure
1 parent fbb1c0e commit f0ff4d6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,16 @@ Value *SplitPtrStructs::handleMemoryInst(Instruction *I, Value *Arg, Value *Ptr,
17651765
"buffer resources and should've been expanded away");
17661766
break;
17671767
}
1768+
case AtomicRMWInst::FMaximum: {
1769+
report_fatal_error("atomic floating point fmaximum not supported for "
1770+
"buffer resources and should've been expanded away");
1771+
break;
1772+
}
1773+
case AtomicRMWInst::FMinimum: {
1774+
report_fatal_error("atomic floating point fminimum not supported for "
1775+
"buffer resources and should've been expanded away");
1776+
break;
1777+
}
17681778
case AtomicRMWInst::Nand:
17691779
report_fatal_error("atomic nand not supported for buffer resources and "
17701780
"should've been expanded away");

llvm/test/CodeGen/RISCV/GlobalISel/legalizer-info-validation.mir

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,12 @@
263263
# DEBUG-NEXT: G_ATOMICRMW_FMIN (opcode {{[0-9]+}}): 2 type indices, 0 imm indices
264264
# DEBUG-NEXT: .. type index coverage check SKIPPED: no rules defined
265265
# DEBUG-NEXT: .. imm index coverage check SKIPPED: no rules defined
266+
# DEBUG-NEXT: G_ATOMICRMW_FMAXIMUM (opcode {{[0-9]+}}): 2 type indices, 0 imm indices
267+
# DEBUG-NEXT: .. type index coverage check SKIPPED: no rules defined
268+
# DEBUG-NEXT: .. imm index coverage check SKIPPED: no rules defined
269+
# DEBUG-NEXT: G_ATOMICRMW_FMINIMUM (opcode {{[0-9]+}}): 2 type indices, 0 imm indices
270+
# DEBUG-NEXT: .. type index coverage check SKIPPED: no rules defined
271+
# DEBUG-NEXT: .. imm index coverage check SKIPPED: no rules defined
266272
# DEBUG-NEXT: G_ATOMICRMW_UINC_WRAP (opcode {{[0-9]+}}): 2 type indices, 0 imm indices
267273
# DEBUG-NEXT: .. type index coverage check SKIPPED: no rules defined
268274
# DEBUG-NEXT: .. imm index coverage check SKIPPED: no rules defined

0 commit comments

Comments
 (0)