Commit f64ce3abaf

Koakuma <koachan@protonmail.com>
2022-03-13 18:29:24
stage2 sparcv9: Fix typo in `format2c`
1 parent 672da9c
Changed files (1)
src
arch
sparcv9
src/arch/sparcv9/bits.zig
@@ -520,7 +520,7 @@ pub const Instruction = union(enum) {
         // Discard the last two bits since those are implicitly zero.
         const udisp = @truncate(u19, @bitCast(u21, disp) >> 2);
 
-        const ccr_cc1 = @truncate(u1, @enumToInt(ccr) > 1);
+        const ccr_cc1 = @truncate(u1, @enumToInt(ccr) >> 1);
         const ccr_cc0 = @truncate(u1, @enumToInt(ccr));
         return Instruction{
             .format_2c = .{