diff options
| author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-02-11 16:39:06 -0300 |
|---|---|---|
| committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-22 21:51:22 -0400 |
| commit | c4d75e4b78c9b574e6bf59a8ae785742a31da98d (patch) | |
| tree | 6c6f84c38a9b59d023ecb09c0737ea56da166b64 /src/shader_recompiler/frontend/maxwell/translate/impl/integer_shift_left.cpp | |
| parent | 5ee600cf641ae039f497dfee0feb41af2db3e6b5 (diff) | |
shader: Initial implementation of an AST
Diffstat (limited to 'src/shader_recompiler/frontend/maxwell/translate/impl/integer_shift_left.cpp')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/translate/impl/integer_shift_left.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_shift_left.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_shift_left.cpp index d4b417d14a..b752785d44 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/integer_shift_left.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/integer_shift_left.cpp @@ -28,7 +28,7 @@ void SHL(TranslatorVisitor& v, u64 insn, const IR::U32& unsafe_shift) { IR::U32 result; if (shl.w != 0) { // When .W is set, the shift value is wrapped - // To emulate this we just have to clamp it ourselves. + // To emulate this we just have to wrap it ourselves. const IR::U32 shift{v.ir.BitwiseAnd(unsafe_shift, v.ir.Imm32(31))}; result = v.ir.ShiftLeftLogical(base, shift); } else { |
