# x86_64: fix packedStore miscomp by spilling EFLAGS · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/c62fb118e70faf531162b897d7e57df843229b72)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: c62fb118e70faf531162b897d7e57df843229b72

Requested commit: c62fb118e70faf531162b897d7e57df843229b72

Commit: c62fb118e70faf531162b897d7e57df843229b72

Tree: 545c2846224ddd208718d6f4607032529cdfd75a

Author: Bingwu Zhang

Committer: Bingwu Zhang

## Message

```
x86_64: fix packedStore miscomp by spilling EFLAGS

Fixes #20113 and #20581.

AND instructions in packedStore clobbers EFLAGS.

Bug: https://github.com/ziglang/zig/issues/20113
Bug: https://github.com/ziglang/zig/issues/20581
Signed-off-by: Bingwu Zhang <xtex@aosc.io>

```

## Parents

- [9c9d3931df4c1decffec610e5e47b3049b147c8d](https://git.cafe/gitcafe/zig/commit/9c9d3931df4c1decffec610e5e47b3049b147c8d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/c62fb118e70faf531162b897d7e57df843229b72?format=markdown)
