Home | History | Annotate | Download | only in X86
      1 ; REQUIRES: asserts
      2 
      3 ; RUN: llvm-as < %s > %t1.bc
      4 
      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.stats
      7 ; RUN: FileCheck --input-file=%t2.stats %s
      8 
      9 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
     10 target triple = "x86_64-unknown-linux-gnu"
     11 
     12 define void @patatino() {
     13   fence seq_cst
     14   ret void
     15 }
     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 --check-prefix=ERROR %s
     25 ; ERROR: LTO::run failed: {{[Nn]}}o such file or directory
     26