An llvm-ar test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18043 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-11-20 07:25:41 +00:00
parent 2e78cf6385
commit e651c954aa
12 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,5 @@
;This isn't really an assembly file, its just here to run the test.
;This test just makes sure that llvm-ar can extract bytecode members
;from GNU style archives
;RUN: llvm-ar x %p/GNU.a very_long_bytecode_file_name.bc
;RUN: diff -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc

View File

@ -0,0 +1,6 @@
;This isn't really an assembly file, its just here to run the test.
;This test just makes sure that llvm-ar can extract bytecode members
;from MacOSX style archives
;RUN: llvm-ar x %p/MacOSX.a very_long_bytecode_file_name.bc
;RUN: diff -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc

View File

@ -0,0 +1,6 @@
;This isn't really an assembly file, its just here to run the test.
;This test just makes sure that llvm-ar can extract bytecode members
;from SVR4 style archives
;RUN: llvm-ar x %p/SVR4.a very_long_bytecode_file_name.bc
;RUN: diff -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc

View File

@ -0,0 +1,6 @@
;This isn't really an assembly file, its just here to run the test.
;This test just makes sure that llvm-ar can extract bytecode members
;from xpg4 style archives
;RUN: llvm-ar x %p/xpg4.a very_long_bytecode_file_name.bc
;RUN: diff -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc

View File

@ -0,0 +1,12 @@
;This isn't really an assembly file, its just here to run the test.
;This test just makes sure that llvm-ar can generate a symbol table for
;GNU style archives
;RUN: cp %p/GNU.a .
;RUN: llvm-ranlib GNU.a
;RUN: llvm-ar t GNU.a > %t1
;RUN: sed -e '/^;.*/d' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen
very_long_bytecode_file_name.bc
IsNAN.o

Binary file not shown.

View File

@ -0,0 +1,12 @@
;This isn't really an assembly file, its just here to run the test.
;This test just makes sure that llvm-ar can generate a symbol table for
;SVR4 style archives
;RUN: cp %p/SVR4.a .
;RUN: llvm-ranlib SVR4.a
;RUN: llvm-ar t SVR4.a > %t1
;RUN: sed -e '/^;.*/d' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen
very_long_bytecode_file_name.bc
IsNAN.o

View File

@ -0,0 +1,12 @@
;This isn't really an assembly file, its just here to run the test.
;This test just makes sure that llvm-ar can generate a symbol table for
;xpg4 style archives
;RUN: cp %p/xpg4.a .
;RUN: llvm-ranlib xpg4.a
;RUN: llvm-ar t xpg4.a > %t1
;RUN: sed -e '/^;.*/d' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen
very_long_bytecode_file_name.bc
IsNAN.o

10
test/Archive/toc_GNU.ll Normal file
View File

@ -0,0 +1,10 @@
;This isn't really an assembly file, its just here to run the test.
;This test just makes sure that llvm-ar can generate a table of contents for
;GNU style archives
;RUN: llvm-ar t %p/GNU.a > %t1
;RUN: sed -e '/^;.*/d' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen
very_long_bytecode_file_name.bc
IsNAN.o

BIN
test/Archive/toc_MacOSX.ll Normal file

Binary file not shown.

10
test/Archive/toc_SVR4.ll Normal file
View File

@ -0,0 +1,10 @@
;This isn't really an assembly file, its just here to run the test.
;This test just makes sure that llvm-ar can generate a table of contents for
;SVR4 style archives
;RUN: llvm-ar t %p/SVR4.a > %t1
;RUN: sed -e '/^;.*/d' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen
very_long_bytecode_file_name.bc
IsNAN.o

10
test/Archive/toc_xpg4.ll Normal file
View File

@ -0,0 +1,10 @@
;This isn't really an assembly file, its just here to run the test.
;This test just makes sure that llvm-ar can generate a table of contents for
;xpg4 style archives
;RUN: llvm-ar t %p/xpg4.a > %t1
;RUN: sed -e '/^;.*/d' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen
very_long_bytecode_file_name.bc
IsNAN.o