brintos

brintos / llvm-project-archived public Read only

0
0
Text · 712 B · 99c2486 Raw
26 lines · plain
1; REQUIRES: asserts2 3; RUN: llvm-as < %s > %t1.bc4 5; Try to save statistics to file.6; RUN: llvm-lto2 run %t1.bc -o %t.o -r %t1.bc,patatino,px -stats-file=%t2.stats7; RUN: FileCheck --input-file=%t2.stats %s8 9target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"10target triple = "x86_64-unknown-linux-gnu"11 12define void @patatino() {13  fence seq_cst14  ret void15}16 17; CHECK: {18; CHECK: "asm-printer.EmittedInsts":19; CHECK: }20 21 22; Try to save statistics to an invalid file.23; RUN: not llvm-lto2 run %t1.bc -o %t.o -r %t1.bc,patatino,px \24; RUN:     -stats-file=%t2/foo.stats 2>&1 | FileCheck -DMSG=%errc_ENOENT --check-prefix=ERROR %s25; ERROR: LTO::run failed: [[MSG]]26