summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-lipo/create-invalid-input.test
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2019-07-15 22:29:30 +0000
committerShoaib Meenai <smeenai@fb.com>2019-07-15 22:29:30 +0000
commit67cee1dc7ee285b03372eb818a3894d35efa7394 (patch)
tree29c7da67274aab9e2685d6d262bfd81272870ecc /llvm/test/tools/llvm-lipo/create-invalid-input.test
parent853813293aceafbca6a71ded2e95e83bd3a9027d (diff)
downloadbcm5719-llvm-67cee1dc7ee285b03372eb818a3894d35efa7394.tar.gz
bcm5719-llvm-67cee1dc7ee285b03372eb818a3894d35efa7394.zip
[llvm-lipo] Implement -create (with hardcoded alignments)
Creates universal binary output file from input files. Currently uses hard coded value for alignment. Want to get the create functionality approved before implementing the alignment function. Patch by Anusha Basana <anusha.basana@gmail.com> Differential Revision: https://reviews.llvm.org/D64102 llvm-svn: 366142
Diffstat (limited to 'llvm/test/tools/llvm-lipo/create-invalid-input.test')
-rw-r--r--llvm/test/tools/llvm-lipo/create-invalid-input.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-lipo/create-invalid-input.test b/llvm/test/tools/llvm-lipo/create-invalid-input.test
new file mode 100644
index 00000000000..4bb2e1a5666
--- /dev/null
+++ b/llvm/test/tools/llvm-lipo/create-invalid-input.test
@@ -0,0 +1,8 @@
+# RUN: yaml2obj %p/Inputs/i386-slice.yaml > %t-32.o
+# RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml > %t-universal.o
+
+# RUN: not llvm-lipo %t-32.o -create 2>&1 | FileCheck --check-prefix=NO_OUTPUT %s
+# NO_OUTPUT: error: create expects a single output file to be specified
+
+# RUN: not llvm-lipo %t-universal.o %t-32.o -create -output %t.o 2>&1 | FileCheck --check-prefix=DUPLICATE_ARCHS %s
+# DUPLICATE_ARCHS: have the same architecture i386 and therefore cannot be in the same universal binary
OpenPOWER on IntegriCloud