mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-05 08:13:06 +08:00
Update byte-loop emission test for exact index checks
This commit is contained in:
@@ -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("alloca i64 ; integer induction index");
|
||||||
expect(ll).toContain("icmp ult i64");
|
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", () => {
|
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);
|
const ll = emitLlvmModule(mod);
|
||||||
|
|
||||||
expect(ll).not.toContain("integer induction index");
|
expect(ll).not.toContain("integer induction index");
|
||||||
expect(ll).toContain("bytes.index.range");
|
expect(ll).toContain("bytes.index.valid");
|
||||||
expect(ll).toContain("fptoui double");
|
expect(ll).toContain("fptosi double");
|
||||||
});
|
});
|
||||||
|
|
||||||
test("large record clones stay outlined while small clones remain inlineable", () => {
|
test("large record clones stay outlined while small clones remain inlineable", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user