commit f64ce3abaf4cad2ab158c754d1d818cd8c8ad1de (tree)
parent 672da9c613939c5c76e68cb3acae9f65845f6e56
Author: Koakuma <koachan@protonmail.com>
Date: Mon, 14 Mar 2022 00:29:24 +0700
stage2 sparcv9: Fix typo in `format2c`
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/arch/sparcv9/bits.zig b/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 = .{