xref: /llvm-project/lld/test/ELF/lto/timepasses.ll (revision 7b1d793713cf9ed9ab719f33b332f9c66a1fc5cc)
1; REQUIRES: x86
2; RUN: llvm-as %s -o %t.o
3; RUN: env LLD_IN_TEST=0 ld.lld %t.o -o %t.so -shared -mllvm \
4; RUN:   -time-passes 2>&1 | FileCheck %s
5
6target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
7target triple = "x86_64-unknown-linux-gnu"
8
9define void @patatino() {
10  ret void
11}
12
13; We should get the output of -time-passes even when full shutdown is not specified.
14; CHECK: Total Execution Time
15