authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-10-27 01:39:57-04:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-10-27 01:40:27-04:00
log42bca3e2ee3adcfcdb7282c6eaa60f93ad6625cd
tree2cb437a0bfb247cf5c167bfd8c5bc7ae754e28ed
parent434a7db986d1ffd2d1e6b7d4bb69873ed05c7980

x86_64: fix `@memset`


2 files changed, 1 insertions(+), 14 deletions(-)

lib/std/zig/parser_test.zig-14
......@@ -748,8 +748,6 @@ test "zig fmt: anon literal in array" {
748748}
749749
750750test "zig fmt: alignment in anonymous literal" {
751 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
752
753751 try testTransform(
754752 \\const a = .{
755753 \\ "U", "L", "F",
......@@ -1953,8 +1951,6 @@ test "zig fmt: struct literal containing a multiline expression" {
19531951}
19541952
19551953test "zig fmt: array literal with hint" {
1956 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
1957
19581954 try testTransform(
19591955 \\const a = []u8{
19601956 \\ 1, 2, //
......@@ -2032,8 +2028,6 @@ test "zig fmt: array literal with hint" {
20322028}
20332029
20342030test "zig fmt: array literal vertical column alignment" {
2035 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2036
20372031 try testTransform(
20382032 \\const a = []u8{
20392033 \\ 1000, 200,
......@@ -2266,8 +2260,6 @@ test "zig fmt: slice align" {
22662260}
22672261
22682262test "zig fmt: add trailing comma to array literal" {
2269 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
2270
22712263 try testTransform(
22722264 \\comptime {
22732265 \\ return []u16{'m', 's', 'y', 's', '-' // hi
......@@ -3803,8 +3795,6 @@ test "zig fmt: fix single statement if/for/while line breaks" {
38033795}
38043796
38053797test "zig fmt: anon struct/array literal in if" {
3806 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
3807
38083798 try testCanonical(
38093799 \\test {
38103800 \\ const a = if (cond) .{
......@@ -4699,8 +4689,6 @@ test "zig fmt: regression test for #8974" {
46994689}
47004690
47014691test "zig fmt: allow trailing line comments to do manual array formatting" {
4702 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4703
47044692 try testCanonical(
47054693 \\fn foo() void {
47064694 \\ self.code.appendSliceAssumeCapacity(&[_]u8{
......@@ -4739,8 +4727,6 @@ test "zig fmt: allow trailing line comments to do manual array formatting" {
47394727}
47404728
47414729test "zig fmt: multiline string literals should play nice with array initializers" {
4742 if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
4743
47444730 try testCanonical(
47454731 \\fn main() void {
47464732 \\ var a = .{.{.{.{.{.{.{.{
src/arch/x86_64/CodeGen.zig+1
......@@ -13366,6 +13366,7 @@ fn airMemset(self: *Self, inst: Air.Inst.Index, safety: bool) !void {
1336613366 defer self.register_manager.unlockReg(len_lock);
1336713367
1336813368 try self.genSetReg(len_reg, Type.usize, len);
13369 try self.asmRegisterRegister(.{ ._, .@"test" }, len_reg, len_reg);
1336913370
1337013371 const skip_reloc = try self.asmJccReloc(.z, undefined);
1337113372 try self.store(slice_ptr_ty, ptr, src_val);