| ... | @@ -198,10 +198,6 @@ fn writeExtendedMask(section: *Section, comptime Operand: type, operand: Operand | ... | @@ -198,10 +198,6 @@ fn writeExtendedMask(section: *Section, comptime Operand: type, operand: Operand |
| 198 | } | 198 | } |
| 199 | } | 199 | } |
| 200 | | 200 | |
| 201 | if (mask == 0) { | | |
| 202 | return; | | |
| 203 | } | | |
| 204 | | | |
| 205 | section.writeWord(mask); | 201 | section.writeWord(mask); |
| 206 | | 202 | |
| 207 | inline for (@typeInfo(Operand).Struct.fields) |field| { | 203 | inline for (@typeInfo(Operand).Struct.fields) |field| { |
| ... | @@ -304,9 +300,6 @@ fn extendedMaskSize(comptime Operand: type, operand: Operand) usize { | ... | @@ -304,9 +300,6 @@ fn extendedMaskSize(comptime Operand: type, operand: Operand) usize { |
| 304 | else => unreachable, | 300 | else => unreachable, |
| 305 | } | 301 | } |
| 306 | } | 302 | } |
| 307 | if (!any_set) { | | |
| 308 | return 0; | | |
| 309 | } | | |
| 310 | return total + 1; // Add one for the mask itself. | 303 | return total + 1; // Add one for the mask itself. |
| 311 | } | 304 | } |
| 312 | | 305 | |