File tree Expand file tree Collapse file tree 4 files changed +15
-14
lines changed
llvm/test/tools/llvm-cgdata Expand file tree Collapse file tree 4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ RUN: split-file %s %t
77
88# Synthesize raw cgdata without the header (24 byte) from the indexed cgdata.
99RUN: llvm-cgdata dump -binary %t/raw-1.cgtext -o %t/raw-1.cgdata
10- RUN: od -t x1 -j 24 -An %t/raw-1.cgdata | tr -d '\n' | sed 's/ /\\\\/g' > %t/raw-1-bytes.txt
11- RUN: sed -i "s/<RAW_1_BYTES>/$(cat %t/raw-1-bytes.txt)/g" %t/merge-1.ll
10+ RUN: od -t x1 -j 24 -An %t/raw-1.cgdata | tr -d '\n\r\t ' | sed 's/[ ]*$//' | sed 's/[ ][ ]* /\\\\/g' > %t/raw-1-bytes.txt
11+ RUN: sed -ie "s/<RAW_1_BYTES>/$(cat %t/raw-1-bytes.txt)/g" %t/merge-1.ll
1212RUN: llc -filetype=obj -mtriple arm64-apple-darwin %t/merge-1.ll -o %t/merge-1.o
1313
1414# Synthesize raw cgdata without the header (24 byte) from the indexed cgdata.
1515RUN: llvm-cgdata dump -binary %t/raw-2.cgtext -o %t/raw-2.cgdata
16- RUN: od -t x1 -j 24 -An %t/raw-2.cgdata | tr -d '\n' | sed 's/ /\\\\/g' > %t/raw-2-bytes.txt
17- RUN: sed -i "s/<RAW_2_BYTES>/$(cat %t/raw-2-bytes.txt)/g" %t/merge-2.ll
16+ RUN: od -t x1 -j 24 -An %t/raw-2.cgdata | tr -d '\n\r\t ' | sed 's/[ ]*$//' | sed 's/[ ][ ]* /\\\\/g' > %t/raw-2-bytes.txt
17+ RUN: sed -ie "s/<RAW_2_BYTES>/$(cat %t/raw-2-bytes.txt)/g" %t/merge-2.ll
1818RUN: llc -filetype=obj -mtriple arm64-apple-darwin %t/merge-2.ll -o %t/merge-2.o
1919
2020# Make an archive from two object files
Original file line number Diff line number Diff line change @@ -8,11 +8,11 @@ RUN: split-file %s %t
88# Synthesize two set of raw cgdata without the header (24 byte) from the indexed cgdata.
99# Concatenate them in merge-concat.ll
1010RUN: llvm-cgdata dump -binary %t/raw-1.cgtext -o %t/raw-1.cgdata
11- RUN: od -t x1 -j 24 -An %t/raw-1.cgdata | tr -d '\n' | sed 's/ /\\\\/g' > %t/raw-1-bytes.txt
12- RUN: sed -i "s/<RAW_1_BYTES>/$(cat %t/raw-1-bytes.txt)/g" %t/merge-concat.ll
11+ RUN: od -t x1 -j 24 -An %t/raw-1.cgdata | tr -d '\n\r\t ' | sed 's/[ ]*$//' | sed 's/[ ][ ]* /\\\\/g' > %t/raw-1-bytes.txt
12+ RUN: sed -ie "s/<RAW_1_BYTES>/$(cat %t/raw-1-bytes.txt)/g" %t/merge-concat.ll
1313RUN: llvm-cgdata dump -binary %t/raw-2.cgtext -o %t/raw-2.cgdata
14- RUN: od -t x1 -j 24 -An %t/raw-2.cgdata | tr -d '\n' | sed 's/ /\\\\/g' > %t/raw-2-bytes.txt
15- RUN: sed -i "s/<RAW_2_BYTES>/$(cat %t/raw-2-bytes.txt)/g" %t/merge-concat.ll
14+ RUN: od -t x1 -j 24 -An %t/raw-2.cgdata | tr -d '\n\r\t ' | sed 's/[ ]*$//' | sed 's/[ ][ ]* /\\\\/g' > %t/raw-2-bytes.txt
15+ RUN: sed -ie "s/<RAW_2_BYTES>/$(cat %t/raw-2-bytes.txt)/g" %t/merge-concat.ll
1616
1717RUN: llc -filetype=obj -mtriple arm64-apple-darwin %t/merge-concat.ll -o %t/merge-concat.o
1818RUN: llvm-cgdata merge %t/merge-concat.o -o %t/merge-concat.cgdata
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ RUN: split-file %s %t
77
88# Synthesize raw cgdata without the header (24 byte) from the indexed cgdata.
99RUN: llvm-cgdata dump -binary %t/raw-1.cgtext -o %t/raw-1.cgdata
10- RUN: od -t x1 -j 24 -An %t/raw-1.cgdata | tr -d '\n' | sed 's/ /\\\\/g' > %t/raw-1-bytes.txt
11- RUN: sed -i "s/<RAW_1_BYTES>/$(cat %t/raw-1-bytes.txt)/g" %t/merge-1.ll
10+ RUN: od -t x1 -j 24 -An %t/raw-1.cgdata | tr -d '\n\r\t ' | sed 's/[ ]*$//' | sed 's/[ ][ ]* /\\\\/g' > %t/raw-1-bytes.txt
11+ RUN: sed -ie "s/<RAW_1_BYTES>/$(cat %t/raw-1-bytes.txt)/g" %t/merge-1.ll
1212RUN: llc -filetype=obj -mtriple arm64-apple-darwin %t/merge-1.ll -o %t/merge-1.o
1313
1414# Synthesize raw cgdata without the header (24 byte) from the indexed cgdata.
1515RUN: llvm-cgdata dump -binary %t/raw-2.cgtext -o %t/raw-2.cgdata
16- RUN: od -t x1 -j 24 -An %t/raw-2.cgdata | tr -d '\n' | sed 's/ /\\\\/g' > %t/raw-2-bytes.txt
17- RUN: sed -i "s/<RAW_2_BYTES>/$(cat %t/raw-2-bytes.txt)/g" %t/merge-2.ll
16+ RUN: od -t x1 -j 24 -An %t/raw-2.cgdata | tr -d '\n\r\t ' | sed 's/[ ]*$//' | sed 's/[ ][ ]* /\\\\/g' > %t/raw-2-bytes.txt
17+ RUN: sed -ie "s/<RAW_2_BYTES>/$(cat %t/raw-2-bytes.txt)/g" %t/merge-2.ll
1818RUN: llc -filetype=obj -mtriple arm64-apple-darwin %t/merge-2.ll -o %t/merge-2.o
1919
2020# Merge two object files into the codegen data file.
Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ RUN: llvm-cgdata show %t/merge-empty.cgdata | count 0
1313
1414# Synthesize raw cgdata without the header (24 byte) from the indexed cgdata.
1515RUN: llvm-cgdata dump -binary %t/raw-single.cgtext -o %t/raw-single.cgdata
16- RUN: od -t x1 -j 24 -An %t/raw-single.cgdata | tr -d '\n' | sed 's/ /\\\\/g' > %t/raw-single-bytes.txt
17- RUN: sed -i "s/<RAW_1_BYTES>/$(cat %t/raw-single-bytes.txt)/g" %t/merge-single.ll
16+ RUN: od -t x1 -j 24 -An %t/raw-single.cgdata | tr -d '\n\r\t' | sed 's/[ ]*$//' | sed 's/[ ][ ]*/\\\\/g' > %t/raw-single-bytes.txt
17+
18+ RUN: sed -ie "s/<RAW_1_BYTES>/$(cat %t/raw-single-bytes.txt)/g" %t/merge-single.ll
1819RUN: llc -filetype=obj -mtriple arm64-apple-darwin %t/merge-single.ll -o %t/merge-single.o
1920
2021# Merge an object file having cgdata (__llvm_outline)
You can’t perform that action at this time.
0 commit comments