Fix OpAtomicFMaxEXT being used inside atomic_f_add

This commit is contained in:
BeastLe9enD 2023-02-26 19:07:36 +01:00 committed by Eduard-Mihai Burtescu
parent 849e82e4af
commit c3909b5b9f

View File

@ -598,7 +598,7 @@ pub unsafe fn atomic_f_add<F: Float, const SCOPE: u32, const SEMANTICS: u32>(
"%scope = OpConstant %u32 {scope}",
"%semantics = OpConstant %u32 {semantics}",
"%value = OpLoad _ {value}",
"%old = OpAtomicFMaxEXT _ {ptr} %scope %semantics %value",
"%old = OpAtomicFAddEXT _ {ptr} %scope %semantics %value",
"OpStore {old} %old",
scope = const SCOPE,
semantics = const SEMANTICS,