# stage2: add AIR instruction \`cmp_vector\` · gitcafe/zig

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

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

Visibility: public

Requested revision: 0f4830704171b734bb4a0235fc14809282457dc3

Requested commit: 0f4830704171b734bb4a0235fc14809282457dc3

Commit: 0f4830704171b734bb4a0235fc14809282457dc3

Tree: f14d426793b2878db30315195c068e6d28ca608d

Author: William Sengir

Committer: Andrew Kelley

## Message

```
stage2: add AIR instruction `cmp_vector`

The existing `cmp_*` instructions get their result type from `lhs`, but
vector comparison will always return a vector of bools with only the
length derived from its operands. This necessitates the creation of a
new AIR instruction.

```

## Parents

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

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