Skip to content

Commit cc4d7dc

Browse files
committed
[AMDGPU] Fix comment for llvm.amdgcn.div.scale. NFC.
Update comment to reflect actual lowering.
1 parent 74e6a5b commit cc4d7dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/IR/IntrinsicsAMDGPU.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ def int_amdgcn_s_waitcnt : GCCBuiltin<"__builtin_amdgcn_s_waitcnt">,
217217
def int_amdgcn_div_scale : Intrinsic<
218218
// 1st parameter: Numerator
219219
// 2nd parameter: Denominator
220-
// 3rd parameter: Constant to select between first and
221-
// second. (0 = first, 1 = second).
220+
// 3rd parameter: Select quotient. Must equal Numerator or Denominator.
221+
// (0 = Denominator, 1 = Numerator).
222222
[llvm_anyfloat_ty, llvm_i1_ty],
223223
[LLVMMatchType<0>, LLVMMatchType<0>, llvm_i1_ty],
224224
[IntrNoMem, IntrSpeculatable, ImmArg<2>]

0 commit comments

Comments
 (0)