mirror of
https://github.com/ziglang/zig.git
synced 2025-12-09 07:43:10 +00:00
x86_64: fix @memset
This commit is contained in:
parent
434a7db986
commit
42bca3e2ee
@ -748,8 +748,6 @@ test "zig fmt: anon literal in array" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "zig fmt: alignment in anonymous literal" {
|
test "zig fmt: alignment in anonymous literal" {
|
||||||
if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
|
||||||
|
|
||||||
try testTransform(
|
try testTransform(
|
||||||
\\const a = .{
|
\\const a = .{
|
||||||
\\ "U", "L", "F",
|
\\ "U", "L", "F",
|
||||||
@ -1953,8 +1951,6 @@ test "zig fmt: struct literal containing a multiline expression" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "zig fmt: array literal with hint" {
|
test "zig fmt: array literal with hint" {
|
||||||
if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
|
||||||
|
|
||||||
try testTransform(
|
try testTransform(
|
||||||
\\const a = []u8{
|
\\const a = []u8{
|
||||||
\\ 1, 2, //
|
\\ 1, 2, //
|
||||||
@ -2032,8 +2028,6 @@ test "zig fmt: array literal with hint" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "zig fmt: array literal vertical column alignment" {
|
test "zig fmt: array literal vertical column alignment" {
|
||||||
if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
|
||||||
|
|
||||||
try testTransform(
|
try testTransform(
|
||||||
\\const a = []u8{
|
\\const a = []u8{
|
||||||
\\ 1000, 200,
|
\\ 1000, 200,
|
||||||
@ -2266,8 +2260,6 @@ test "zig fmt: slice align" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "zig fmt: add trailing comma to array literal" {
|
test "zig fmt: add trailing comma to array literal" {
|
||||||
if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
|
||||||
|
|
||||||
try testTransform(
|
try testTransform(
|
||||||
\\comptime {
|
\\comptime {
|
||||||
\\ return []u16{'m', 's', 'y', 's', '-' // hi
|
\\ return []u16{'m', 's', 'y', 's', '-' // hi
|
||||||
@ -3803,8 +3795,6 @@ test "zig fmt: fix single statement if/for/while line breaks" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "zig fmt: anon struct/array literal in if" {
|
test "zig fmt: anon struct/array literal in if" {
|
||||||
if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
|
||||||
|
|
||||||
try testCanonical(
|
try testCanonical(
|
||||||
\\test {
|
\\test {
|
||||||
\\ const a = if (cond) .{
|
\\ const a = if (cond) .{
|
||||||
@ -4699,8 +4689,6 @@ test "zig fmt: regression test for #8974" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "zig fmt: allow trailing line comments to do manual array formatting" {
|
test "zig fmt: allow trailing line comments to do manual array formatting" {
|
||||||
if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
|
||||||
|
|
||||||
try testCanonical(
|
try testCanonical(
|
||||||
\\fn foo() void {
|
\\fn foo() void {
|
||||||
\\ self.code.appendSliceAssumeCapacity(&[_]u8{
|
\\ self.code.appendSliceAssumeCapacity(&[_]u8{
|
||||||
@ -4739,8 +4727,6 @@ test "zig fmt: allow trailing line comments to do manual array formatting" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "zig fmt: multiline string literals should play nice with array initializers" {
|
test "zig fmt: multiline string literals should play nice with array initializers" {
|
||||||
if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
|
||||||
|
|
||||||
try testCanonical(
|
try testCanonical(
|
||||||
\\fn main() void {
|
\\fn main() void {
|
||||||
\\ var a = .{.{.{.{.{.{.{.{
|
\\ var a = .{.{.{.{.{.{.{.{
|
||||||
|
|||||||
@ -13366,6 +13366,7 @@ fn airMemset(self: *Self, inst: Air.Inst.Index, safety: bool) !void {
|
|||||||
defer self.register_manager.unlockReg(len_lock);
|
defer self.register_manager.unlockReg(len_lock);
|
||||||
|
|
||||||
try self.genSetReg(len_reg, Type.usize, len);
|
try self.genSetReg(len_reg, Type.usize, len);
|
||||||
|
try self.asmRegisterRegister(.{ ._, .@"test" }, len_reg, len_reg);
|
||||||
|
|
||||||
const skip_reloc = try self.asmJccReloc(.z, undefined);
|
const skip_reloc = try self.asmJccReloc(.z, undefined);
|
||||||
try self.store(slice_ptr_ty, ptr, src_val);
|
try self.store(slice_ptr_ty, ptr, src_val);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user