brintos

brintos / llvm-project-archived public Read only

0
0
Text · 705 B · 8c0c306 Raw
19 lines · plain
1; REQUIRES: asserts2 3; Ensure the test runs in a temp directory. See https://github.com/llvm/llvm-project/pull/167403#event-208487395264; RUN: rm -rf %t.dir && mkdir -p %t.dir && cd %t.dir5 6; RUN: llc --save-stats=obj -o %t.s %s && cat %t.stats | FileCheck %s7; RUN: llc --save-stats=cwd -o %t.s %s && cat %{t:stem}.tmp.stats | FileCheck %s8; RUN: llc --save-stats -o %t.s %s && cat %{t:stem}.tmp.stats | FileCheck %s9; RUN: not llc --save-stats=invalid -o %t.s %s 2>&1 | FileCheck %s --check-prefix=INVALID_ARG10 11; CHECK: {12; CHECK: "asm-printer.EmittedInsts":13; CHECK: }14 15; INVALID_ARG: {{.*}}llc{{.*}}: for the --save-stats option: Cannot find option named 'invalid'!16define i32 @func() {17  ret i32 018}19