Fix constant shift right

This commit is contained in:
David Gonzalez Martin 2025-03-31 10:09:23 +02:00
parent 893eb287c3
commit 671189f299
2 changed files with 3 additions and 2 deletions

View File

@ -3453,6 +3453,7 @@ const Converter = struct {
.@"<<", .@"<<",
.@">>", .@">>",
}; };
for (shifting_operators) |shifting_operator| { for (shifting_operators) |shifting_operator| {
r[@intFromEnum(shifting_operator)] = .{ r[@intFromEnum(shifting_operator)] = .{
.before = null, .before = null,
@ -3594,7 +3595,7 @@ const Converter = struct {
'>' => blk: { '>' => blk: {
const next_ch = converter.content[start_index + 1]; const next_ch = converter.content[start_index + 1];
const token_id: Token.Id = switch (next_ch) { const token_id: Token.Id = switch (next_ch) {
'<' => switch (converter.content[start_index + 2]) { '>' => switch (converter.content[start_index + 2]) {
'=' => .@">>=", '=' => .@">>=",
else => .@">>", else => .@">>",
}, },

View File

@ -182,7 +182,7 @@ pub fn entry_point(arguments: []const [*:0]const u8, environment: [*:null]const
"constant_sub", "constant_sub",
"constant_xor", "constant_xor",
"constant_shift_left", "constant_shift_left",
//"constant_shift_right", "constant_shift_right",
"minimal_stack", "minimal_stack",
}; };