1 Star 0 Fork 14

OlshevskyVladimir/llvm-test-suite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
TEST.m2regllcdbg.Makefile 2.37 KB
一键复制 编辑 原始数据 按行查看 历史
Evan Cheng 提交于 2010-06-09 16:17 . llc -f option is gone.
##===- TEST.llcdbg.Makefile --------------------------------*- Makefile -*-===##
#
# This test checks whether presence of debug declarations influences
# the code generator or not.
#
# If input.bc includes llvm.dbg intrinsics and llvm.dbg variables then
# the code in first.s and second.s should match. Otherwise debugging information
# is influencing the code generator. The Dwarf info in first.s and second.s is
# normally quite different, so the data directives that appear in Dwarf are
# stripped out before comparison.
#
# This has only been used on Darwin; the data directives to strip and grep magic
# might be different elsewhere.
#
##===----------------------------------------------------------------------===##
TESTNAME = $*
TEST_TARGET_FLAGS = -g -O0
LLC_DEBUG_FLAGS = -O0 -regalloc=local $(LLCFLAGS)
.PRECIOUS: Output/%.first.s Output/%.second.s Output/%.t2c.s Output/%.t1c.s Output/%.t2b.bc Output/%.t1b.bc
$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
test.$(TEST).%: Output/%.diff
Output/%.t1a.bc: Output/%.linked.rbc Output/.dir $(LOPT)
$(LOPT) -strip-debug-declare -strip-nondebug $< -f -o $@
Output/%.t1b.bc: Output/%.t1a.bc Output/.dir $(LOPT)
$(LOPT) -mem2reg $< -f -o $@
Output/%.t1c.s: Output/%.t1b.bc Output/.dir $(LLC)
$(LLC) $(LLC_DEBUG_FLAGS) $< -o $@
Output/%.first.s: Output/%.t1c.s Output/.dir $(LLC)
grep -v '\.long' < $< | grep -v '\.byte' | grep -v '\.short' | grep -v '\.asci' | grep -v '\.quad' | grep -v '## DW_AT' | grep -v '## Abbrev' | grep -v '## End Of Children' | grep -v '## Extended Op' | grep -v 'Ltmp[0-9]' | grep -v '## DIE' | grep -v '## $$' | grep -v '^#.*' | grep -v '^$$' > $@
Output/%.t2a.bc: Output/%.linked.rbc Output/.dir $(LOPT)
$(LOPT) -strip-nondebug $< -f -o $@
Output/%.t2b.bc: Output/%.t2a.bc Output/.dir $(LOPT)
$(LOPT) -mem2reg $< -f -o $@
Output/%.t2c.s: Output/%.t2b.bc Output/.dir $(LLC)
$(LLC) $(LLC_DEBUG_FLAGS) $< -o $@
Output/%.second.s: Output/%.t2c.s Output/.dir
grep -v DEBUG_VALUE < $< | grep -v '\.long' | grep -v '\.byte' | grep -v '\.short' | grep -v '\.asci' | grep -v '## DW_AT' | grep -v '## Abbrev' | grep -v '## End Of Children' | grep -v '## Extended Op' | grep -v 'Ltmp[0-9]' | grep -v '## DIE' | grep -v '## $$' | grep -v '\.quad' | grep -v '^#' | grep -v '^$$' > $@
Output/%.diff: Output/%.first.s Output/%.second.s
@-if diff $^ > $@; then \
echo "--------- TEST-PASS: $*"; \
else \
echo "--------- TEST-FAIL: $*"; \
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/OlshevskyVladimir/llvm-test-suite.git
git@gitee.com:OlshevskyVladimir/llvm-test-suite.git
OlshevskyVladimir
llvm-test-suite
llvm-test-suite
main

搜索帮助