# stage2: merge MOV back with arith instructions · gitcafe/zig

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

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

Visibility: public

Requested revision: 5156ccd552fa6d0959c8349cbbe176099ac4c356

Requested commit: 5156ccd552fa6d0959c8349cbbe176099ac4c356

Commit: 5156ccd552fa6d0959c8349cbbe176099ac4c356

Tree: 62a76e97732ce29f9c46b460859b134c0bdc47ce

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
stage2: merge MOV back with arith instructions

* turns out MOV and other arithmetic instructions such as ADD can
  naturally share the same lowering codepath (for the same variants)
* there are variants that are specific to ADD, or MOV which will be
  implemented as standalone MIR tags
* tweak Isel tests to generate corresponding test cases for all
  arithmetic instructions in comptime

```

## Parents

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

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