Debian Codegraph @

compiler-rt/test/builtins/timing/time

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 function testscip-shell shell llvm-toolchain-21 1:21.1.8-7 test(). () {
4 arch=$1
5 file=$2
6 name=$3
7 ldflags=$4
8
9 if gccscip-shell system . . gcc. -arch $arch -Os $file $ldflags -DLIBNAME=$name
10 then
11 if ./a.out
12 then
13 rmscip-shell system . . rm. ./a.out
14 else
15 echoscip-shell system . . echo. "fail"
16 fi
17 else
18 echoscip-shell system . . echo. "$FILE failed to compile"
19 fi
20 }
21
22 INSTALLED=/usr/local/lib/system/libcompiler_rt.ascip-shell filesystem . . `/usr/local/lib/system/libcompiler_rt.a`.
23
24 for ARCH in i386 x86_64; do
25 for FILE in $(lsscip-shell system . . ls. *.c); do
26
27 echoscip-shell system . . echo. "Timing $FILE for $ARCH"
28
29 testscip-shell shell llvm-toolchain-21 1:21.1.8-7 test(). $ARCH $FILE libgcc ""
30 testscip-shell shell llvm-toolchain-21 1:21.1.8-7 test(). $ARCH $FILE tuned ../../darwin_fat/Release/libcompiler_rt.a
31 if [scip-shell system . . `[`. -f "$INSTALLED" ]; then
32 testscip-shell shell llvm-toolchain-21 1:21.1.8-7 test(). $ARCH $FILE installed $INSTALLED
33 fi
34
35 echoscip-shell system . . echo. " "
36
37 done
38 done
39 exit