mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Fix some autodiff tests require Clto=fat
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user