Update byte-loop emission test for exact index checks

(cherry picked from commit f3cfa80a8e)
This commit is contained in:
Chris Tate
2026-10-11 13:08:09 -07:00
committed by Malte Ubl
parent 8b5cf78e19
commit f43ef506db
@@ -314,7 +314,7 @@ test("canonical byte loops keep their induction variable and indices integral",
expect(ll).toContain("alloca i64 ; integer induction index");
expect(ll).toContain("icmp ult i64");
expect(ll).not.toContain("bytes.index.range");
expect(ll).not.toContain("fptosi double");
});
test("a body mutation keeps the byte loop on the general f64 path", () => {
@@ -324,8 +324,8 @@ test("a body mutation keeps the byte loop on the general f64 path", () => {
const ll = emitLlvmModule(mod);
expect(ll).not.toContain("integer induction index");
expect(ll).toContain("bytes.index.range");
expect(ll).toContain("fptoui double");
expect(ll).toContain("bytes.index.valid");
expect(ll).toContain("fptosi double");
});
test("large record clones stay outlined while small clones remain inlineable", () => {