brintos

brintos / llvm-project-archived public Read only

0
0
Text · 988 B · 391150f Raw
33 lines · plain
1; RUN: llvm-as %s -o %t.o2 3; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \4; RUN:    -m elf_x86_64 --plugin-opt=time-trace=%t2.json \5; RUN:    -shared %t.o -o /dev/null6; RUN: FileCheck --input-file %t2.json %s7 8; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \9; RUN:    -m elf_x86_64 --plugin-opt=time-trace=%t2.json \10; RUN:    --plugin-opt=time-trace-granularity=250  \11; RUN:    -shared %t.o -o /dev/null12; RUN: FileCheck --input-file %t2.json %s13 14; RUN: not %gold -plugin %llvmshlibdir/LLVMgold%shlibext \15; RUN:    -m elf_x86_64 --plugin-opt=time-trace=%t2.json \16; RUN:    --plugin-opt=time-trace-granularity=hello  \17; RUN:    -shared %t.o -o /dev/null 2> %t4.txt18; RUN: FileCheck --input-file %t4.txt %s --check-prefix=ERR19 20target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"21target triple = "x86_64-unknown-linux-gnu"22 23define void @f1() {24  ret void25}26 27define void @f2() {28  ret void29}30 31; CHECK: "traceEvents":32; ERR: Invalid time trace granularity: hello33