[libc-commits] [libc] [libc][mathvec] Check every lane in exhaustive tests (PR #241104)

via libc-commits libc-commits at lists.llvm.org
Thu Nov 19 10:45:53 PST 2026


sriramshastry wrote:

Good point. For four distinct inputs on a four-lane target, assuming all comparisons pass, the checker does this much work:

| Checker | Vec4 calls | Scalar calls | Lane comparisons |
| --- | ---: | ---: | ---: |
| Current checker: broadcast, check lane 0 | 4 | 4 | 4 |
| This PR: broadcast, check all lanes | 4 | 4 | 16 |
| Packed inputs: four distinct values per vector | 1 | 4 | 4 |

Packing reduces vector calls and exercises mixed inputs. This PR checks each input in every lane, while one packed sweep checks each input in one lane.

Dylan, is packing already planned? If it’s still exploratory, I would keep this PR focused on the broadcast checker and benchmark packing separately.

https://github.com/llvm/llvm-project/pull/241104


More information about the libc-commits mailing list