Fix some autodiff tests require Clto=fat

This commit is contained in:
sgasho
2026-02-04 00:58:34 +09:00
parent 46c86aef65
commit 6c4abb7fab
12 changed files with 13 additions and 10 deletions
@@ -4,6 +4,6 @@
use run_make_support::{llvm_filecheck, rfs, rustc};
fn main() {
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
llvm_filecheck().patterns("array.check").stdin_buf(rfs::read("test.ll")).run();
}
@@ -9,6 +9,7 @@ fn main() {
.arg("-Zautodiff=Enable")
.arg("-Zautodiff=NoPostopt")
.opt_level("0")
.arg("-Clto=fat")
.emit("llvm-ir")
.run();
@@ -8,6 +8,7 @@ fn main() {
rustc()
.input("test.rs")
.arg("-Zautodiff=Enable,NoTT")
.arg("-Clto=fat")
.emit("llvm-ir")
.arg("-o")
.arg("nott.ll")
@@ -17,6 +18,7 @@ fn main() {
rustc()
.input("test.rs")
.arg("-Zautodiff=Enable")
.arg("-Clto=fat")
.emit("llvm-ir")
.arg("-o")
.arg("with_tt.ll")
@@ -4,6 +4,6 @@
use run_make_support::{llvm_filecheck, rfs, rustc};
fn main() {
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
llvm_filecheck().patterns("recursion.check").stdin_buf(rfs::read("test.ll")).run();
}
@@ -5,7 +5,7 @@
fn main() {
// Compile with TypeTree enabled and emit LLVM IR
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
// Check that f128 TypeTree metadata is correctly generated
llvm_filecheck().patterns("f128.check").stdin_buf(rfs::read("test.ll")).run();
@@ -5,7 +5,7 @@
fn main() {
// Compile with TypeTree enabled and emit LLVM IR
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
// Check that f16 TypeTree metadata is correctly generated
llvm_filecheck().patterns("f16.check").stdin_buf(rfs::read("test.ll")).run();
@@ -5,7 +5,7 @@
fn main() {
// Compile with TypeTree enabled and emit LLVM IR
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
// Check that f32 TypeTree metadata is correctly generated
llvm_filecheck().patterns("f32.check").stdin_buf(rfs::read("test.ll")).run();
@@ -5,7 +5,7 @@
fn main() {
// Compile with TypeTree enabled and emit LLVM IR
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
// Check that f64 TypeTree metadata is correctly generated
llvm_filecheck().patterns("f64.check").stdin_buf(rfs::read("test.ll")).run();
@@ -5,7 +5,7 @@
fn main() {
// Compile with TypeTree enabled and emit LLVM IR
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
// Check that i32 TypeTree metadata is correctly generated
llvm_filecheck().patterns("i32.check").stdin_buf(rfs::read("test.ll")).run();
@@ -4,6 +4,6 @@
use run_make_support::{llvm_filecheck, rfs, rustc};
fn main() {
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
llvm_filecheck().patterns("slice.check").stdin_buf(rfs::read("test.ll")).run();
}
@@ -4,6 +4,6 @@
use run_make_support::{llvm_filecheck, rfs, rustc};
fn main() {
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
llvm_filecheck().patterns("struct.check").stdin_buf(rfs::read("test.ll")).run();
}
@@ -4,6 +4,6 @@
use run_make_support::{llvm_filecheck, rfs, rustc};
fn main() {
rustc().input("test.rs").arg("-Zautodiff=Enable").emit("llvm-ir").run();
rustc().input("test.rs").arg("-Zautodiff=Enable").arg("-Clto=fat").emit("llvm-ir").run();
llvm_filecheck().patterns("tuple.check").stdin_buf(rfs::read("test.ll")).run();
}