[llvm-commits] [test-suite] r59572 - /test-suite/trunk/TEST.dbgopt.Makefile

Devang Patel dpatel at apple.com
Tue Nov 18 16:27:57 PST 2008


Author: dpatel
Date: Tue Nov 18 18:27:56 2008
New Revision: 59572

URL: http://llvm.org/viewvc/llvm-project?rev=59572&view=rev
Log:

$ opt input.bc -strip -std-compile-output -o first.bc
$ opt input.bc -std-compile-output -strip -o second.bc

Here first.bc and second.bc may not match because during optimization the optimizer may create new symbols whose name based on the names of exisiting symbols.
Strip symbol names in the beginning and strip at the end to eliminate these symbol names differences.

$ opt input.bc -strip-nondebug -strip-debug -std-compile-output -strip -o first.bc
$ opt input.bc -strip-nondebug -std-compile-output -strip -o second.bc


Modified:
    test-suite/trunk/TEST.dbgopt.Makefile

Modified: test-suite/trunk/TEST.dbgopt.Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/TEST.dbgopt.Makefile?rev=59572&r1=59571&r2=59572&view=diff

==============================================================================
--- test-suite/trunk/TEST.dbgopt.Makefile (original)
+++ test-suite/trunk/TEST.dbgopt.Makefile Tue Nov 18 18:27:56 2008
@@ -7,8 +7,8 @@
 # first.bc and second.bc should match. Otherwise debugging information
 # is influencing the optimizer.
 #
-# $ opt input.bc -strip -std-compile-output -o first.bc
-# $ opt input.bc -std-compile-output -strip -o second.bc
+# $ opt input.bc -strip-nondebug -strip-debug -std-compile-output -strip -o first.bc
+# $ opt input.bc -strip-nondebug -std-compile-output -strip -o second.bc
 #
 ##===----------------------------------------------------------------------===##
 
@@ -19,10 +19,10 @@
 
 Output/%.diff: %.cpp Output/.dir $(LLVMGXX) $(LOPT) $(LDIS)
 	$(LLVMGXX) $*.cpp -g --emit-llvm -c -o Output/$*.bc 
-	$(LOPT) Output/$*.bc -strip -std-compile-opts -f -o Output/$*.bc 
-	$(LDIS) Output/$*.bc -f -o Output/$*.first.ll 
-	$(LOPT) Output/$*.bc -std-compile-opts -strip -f -o Output/$*.bc 
-	$(LDIS) Output/$*.bc -f -o Output/$*.second.ll 
+	$(LOPT) Output/$*.bc -strip-nondebug -strip-debug -std-compile-opts -strip -f -o Output/$*.t.bc 
+	$(LDIS) Output/$*.t.bc -f -o Output/$*.first.ll 
+	$(LOPT) Output/$*.bc -strip-nondebug -std-compile-opts -strip -f -o Output/$*.t.bc 
+	$(LDIS) Output/$*.t.bc -f -o Output/$*.second.ll 
 	@-if diff Output/$*.first.ll Output/$*.second.ll > Output/$*.diff; then \
 	 echo "--------- TEST-PASS: $*"; \
 	else \
@@ -32,12 +32,13 @@
 
 Output/%.diff: %.c Output/.dir $(LLVMGCC) $(LOPT) $(LDIS)
 	$(LLVMGCC) $*.c -g --emit-llvm -c -o Output/$*.bc 
-	$(LOPT) Output/$*.bc -strip -std-compile-opts -f -o Output/$*.bc 
-	$(LDIS) Output/$*.bc -f -o Output/$*.first.ll 
-	$(LOPT) Output/$*.bc -std-compile-opts -strip -f -o Output/$*.bc 
-	$(LDIS) Output/$*.bc -f -o Output/$*.second.ll 
+	$(LOPT) Output/$*.bc -strip-nondebug -strip-debug -std-compile-opts -strip -f -o Output/$*.t.bc 
+	$(LDIS) Output/$*.t.bc -f -o Output/$*.first.ll 
+	$(LOPT) Output/$*.bc -strip-nondebug -std-compile-opts -strip -f -o Output/$*.t.bc 
+	$(LDIS) Output/$*.t.bc -f -o Output/$*.second.ll 
 	@-if diff Output/$*.first.ll Output/$*.second.ll > Output/$*.diff; then \
 	 echo "--------- TEST-PASS: $*"; \
 	else \
 	 echo "--------- TEST-FAIL: $*"; \
 	fi
+





More information about the llvm-commits mailing list