diff options
| author | 2021-02-25 00:46:40 -0500 | |
|---|---|---|
| committer | 2021-07-22 21:51:22 -0400 | |
| commit | cc55d289494c991e7e0e456e428a110569708c2e (patch) | |
| tree | 36e869098e87528ab7b7f668e232d7e909a2258a /src/shader_recompiler/frontend/ir/ir_emitter.cpp | |
| parent | shader: Implement SEL (diff) | |
| download | yuzu-cc55d289494c991e7e0e456e428a110569708c2e.tar.gz yuzu-cc55d289494c991e7e0e456e428a110569708c2e.tar.xz yuzu-cc55d289494c991e7e0e456e428a110569708c2e.zip | |
shader: Implement SHR
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp index 0209d5540..7c3908398 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp +++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp | |||
| @@ -804,6 +804,10 @@ U32 IREmitter::BitFieldExtract(const U32& base, const U32& offset, const U32& co | |||
| 804 | count); | 804 | count); |
| 805 | } | 805 | } |
| 806 | 806 | ||
| 807 | U32 IREmitter::BitReverse(const U32& value) { | ||
| 808 | return Inst<U32>(Opcode::BitReverse32, value); | ||
| 809 | } | ||
| 810 | |||
| 807 | U1 IREmitter::ILessThan(const U32& lhs, const U32& rhs, bool is_signed) { | 811 | U1 IREmitter::ILessThan(const U32& lhs, const U32& rhs, bool is_signed) { |
| 808 | return Inst<U1>(is_signed ? Opcode::SLessThan : Opcode::ULessThan, lhs, rhs); | 812 | return Inst<U1>(is_signed ? Opcode::SLessThan : Opcode::ULessThan, lhs, rhs); |
| 809 | } | 813 | } |