代码拉取完成,页面将自动刷新
同步操作将从 Lyupa Anastasia/llvm-test-suite 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
##===- TEST.dbgopt.Makefile --------------------------------*- Makefile -*-===##
#
# This test checks whether presense of debugging information influences
# the optimizer or not.
#
# $ clang -fno-verbose-asm -g -mllvm --disable-debug-info-print -Os \
# -S foo.c -o foo.first.s
# $ clang -fno-verbose-asm -Os -S foo.c -o foo.second.s
# $ diff foo.first.s foo.second.s
#
##===----------------------------------------------------------------------===##
TESTNAME = $*
.PRECIOUS: Output/%.first.s Output/%.second.s
$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
test.$(TEST).%: Output/%.diff
Output/%.s: %.c Output/.dir $(INCLUDES)
-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os \
-fno-verbose-asm -mllvm --disable-debug-info-print \
-S ${PROJ_SRC_DIR}/$*.c -o Output/$*.first.s
-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os \
-fno-verbose-asm -S ${PROJ_SRC_DIR}/$*.c -o Output/$*.second.s
echo "---------------------------------------------------------------" \
> Output/$*.dbgopt.report.txt; \
echo ">>> ========= '$*' Program" >> Output/$*.dbgopt.report.txt; \
echo "---------------------------------------------------------------\n"\
>> Output/$*.dbgopt.report.txt;
@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
echo "TEST: PASS" >> Output/$*.dbgopt.report.txt; \
else \
echo "TEST: FAIL" >> Output/$*.dbgopt.report.txt; \
fi
Output/%.s: %.cpp Output/.dir $(INCLUDES)
-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os \
-fno-verbose-asm -mllvm --disable-debug-info-print \
-S ${PROJ_SRC_DIR}/$*.cpp -o Output/$*.first.s
-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
-fno-verbose-asm ${PROJ_SRC_DIR}/$*.cpp -o Output/$*.second.s
echo "---------------------------------------------------------------" \
> Output/$*.dbgopt.report.txt; \
echo ">>> ========= '$*' Program" >> Output/$*.dbgopt.report.txt; \
echo "---------------------------------------------------------------\n"\
>> Output/$*.dbgopt.report.txt;
@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
echo "TEST: PASS" >> Output/$*.dbgopt.report.txt; \
else \
echo "TEST: FAIL" >> Output/$*.dbgopt.report.txt; \
fi
Output/%.s: %.cc Output/.dir $(INCLUDES)
-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os \
-fno-verbose-asm -mllvm -disable-debug-info-print \
-S ${PROJ_SRC_DIR}/$*.cc -o Output/$*.first.s
-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
-fno-verbose-asm ${PROJ_SRC_DIR}/$*.cc -o Output/$*.second.s
echo "---------------------------------------------------------------" \
> Output/$*.dbgopt.report.txt; \
echo ">>> ========= '$*' Program" >> Output/$*.dbgopt.report.txt; \
echo "---------------------------------------------------------------\n"\
>> Output/$*.dbgopt.report.txt;
@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
echo "TEST: PASS" >> Output/$*.dbgopt.report.txt; \
else \
echo "TEST: FAIL" >> Output/$*.dbgopt.report.txt; \
fi
Output/%.s: %.m Output/.dir $(INCLUDES)
-$(LLVMCC) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os \
-fno-verbose-asm -mllvm --disable-debug-info-print \
-S ${PROJ_SRC_DIR}/$*.m -o Output/$*.first.s
-$(LLVMCC) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
-fno-verbose-asm ${PROJ_SRC_DIR}/$*.m -o Output/$*.second.s
echo "---------------------------------------------------------------" \
> Output/$*.dbgopt.report.txt; \
echo ">>> ========= '$*' Program" >> Output/$*.dbgopt.report.txt; \
echo "---------------------------------------------------------------\n"\
>> Output/$*.dbgopt.report.txt;
@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
echo "TEST: PASS" >> Output/$*.dbgopt.report.txt; \
else \
echo "TEST: FAIL" >> Output/$*.dbgopt.report.txt; \
fi
Output/%.s: %.mm Output/.dir $(INCLUDES)
-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -g -Os \
-fno-verbose-asm -mllvm --disable-debug-info-print \
-S ${PROJ_SRC_DIR}/$*.mm -o Output/$*.first.s
-$(LLVMCC) $(CPPFLAGS) $(CFLAGS) $(LOPTFLAGS) $(X_TARGET_FLAGS) -Os -S \
-fno-verbose-asm ${PROJ_SRC_DIR}/$*.mm -o Output/$*.second.s
echo "---------------------------------------------------------------" \
> Output/$*.dbgopt.report.txt; \
echo ">>> ========= '$*' Program" >> Output/$*.dbgopt.report.txt; \
echo "---------------------------------------------------------------\n"\
>> Output/$*.dbgopt.report.txt;
@-if diff Output/$*.first.s Output/$*.second.s > $@; then \
echo "TEST: PASS" >> Output/$*.dbgopt.report.txt; \
else \
echo "TEST: FAIL" >> Output/$*.dbgopt.report.txt; \
fi
Asms := $(sort $(addsuffix .s, $(notdir $(basename $(Source)))))
AllAsms := $(addprefix Output/,$(Asms))
Output/%.diff: $(AllAsms)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。