Implement V_CMP_GT_U64 (#3352)

* Implement V_CMP_GT_U64

* Add GroupAny

* Use GroupAny

* Add assert

* clang
This commit is contained in:
kalaposfos13
2025-08-21 04:53:54 +02:00
committed by GitHub
parent 2d98adef17
commit 8a84f1b778
6 changed files with 20 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
#include <source_location>
#include <boost/container/small_vector.hpp>
#include "common/assert.h"
#include "ir_emitter.h"
#include "shader_recompiler/exception.h"
#include "shader_recompiler/ir/debug_print.h"
#include "shader_recompiler/ir/ir_emitter.h"
@@ -668,6 +669,10 @@ U32 IREmitter::BallotFindLsb(const Value& mask) {
return Inst<U32>(Opcode::BallotFindLsb, mask);
}
U1 IREmitter::GroupAny(const U1& bit) {
return Inst<U1>(Opcode::GroupAny, bit);
}
F32F64 IREmitter::FPAdd(const F32F64& a, const F32F64& b) {
if (a.Type() != b.Type()) {
UNREACHABLE_MSG("Mismatching types {} and {}", a.Type(), b.Type());

View File

@@ -177,6 +177,7 @@ public:
[[nodiscard]] U32 WriteLane(const U32& value, const U32& write_value, const U32& lane);
[[nodiscard]] Value Ballot(const U1& bit);
[[nodiscard]] U32 BallotFindLsb(const Value& mask);
[[nodiscard]] U1 GroupAny(const U1& bit);
[[nodiscard]] Value CompositeConstruct(const Value& e1, const Value& e2);
[[nodiscard]] Value CompositeConstruct(const Value& e1, const Value& e2, const Value& e3);

View File

@@ -479,3 +479,4 @@ OPCODE(Ballot, U32x4, U1,
OPCODE(BallotFindLsb, U32, U32x4, )
OPCODE(DataAppend, U32, U32, U32 )
OPCODE(DataConsume, U32, U32, U32 )
OPCODE(GroupAny, U1, U1, )