Update byte-loop emission test for exact index checks

This commit is contained in:
Chris Tate
2026-10-11 14:48:03 -05:00
parent 9b80f3d4b4
commit f3cfa80a8e
@@ -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", () => {