fix clang-format

This commit is contained in:
Frodo Baggins 2024-08-30 15:07:36 -07:00
parent 70d6b72377
commit c2f7541967
1 changed files with 2 additions and 1 deletions

View File

@ -980,7 +980,8 @@ void Translator::V_BFM_B32(const GcnInst& inst) {
void Translator::V_FFBH_U32(const GcnInst& inst) { void Translator::V_FFBH_U32(const GcnInst& inst) {
const IR::U32 src0{GetSrc(inst.src[0])}; const IR::U32 src0{GetSrc(inst.src[0])};
// Gcn wants the MSB position counting from the left, but SPIR-V counts from the rightmost (LSB) position // Gcn wants the MSB position counting from the left, but SPIR-V counts from the rightmost (LSB)
// position
const IR::U32 msb_pos = ir.FindUMsb(src0); const IR::U32 msb_pos = ir.FindUMsb(src0);
const IR::U32 pos_from_left = ir.ISub(ir.Imm32(31), msb_pos); const IR::U32 pos_from_left = ir.ISub(ir.Imm32(31), msb_pos);
// Select 0xFFFFFFFF if src0 was 0 // Select 0xFFFFFFFF if src0 was 0