mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Changes to make test scripts more reliable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e17303dc9b
commit
dc693b8965
@ -11,7 +11,7 @@ export LD_LIBRARY_PATH
|
|||||||
# FIXME: We must strip symbols, because the symbol tables are not output in
|
# FIXME: We must strip symbols, because the symbol tables are not output in
|
||||||
# sorted order in the bytecode :(
|
# sorted order in the bytecode :(
|
||||||
|
|
||||||
../tools/as/as < $1 | opt -q -strip > $1.bc.1 || exit 1
|
../tools/as/as < $1 | ../tools/opt/opt -q -strip > $1.bc.1 || exit 1
|
||||||
../tools/dis/dis < $1.bc.1 > $1.ll.1 || exit 2
|
../tools/dis/dis < $1.bc.1 > $1.ll.1 || exit 2
|
||||||
../tools/as/as < $1.ll.1 > $1.bc.2 || exit 3
|
../tools/as/as < $1.ll.1 > $1.bc.2 || exit 3
|
||||||
../tools/dis/dis < $1.bc.2 > $1.ll.2 || exit 4
|
../tools/dis/dis < $1.bc.2 > $1.ll.2 || exit 4
|
||||||
|
@ -8,8 +8,8 @@ export LD_LIBRARY_PATH
|
|||||||
# Should not be able to optimize further!
|
# Should not be able to optimize further!
|
||||||
../tools/opt/opt -q -constprop -dce < $1.bc.1 > $1.bc.2 || exit 2
|
../tools/opt/opt -q -constprop -dce < $1.bc.1 > $1.bc.2 || exit 2
|
||||||
|
|
||||||
dis < $1.bc.1 > $1.ll.1 || exit 3
|
../tools/dis/dis < $1.bc.1 > $1.ll.1 || exit 3
|
||||||
dis < $1.bc.2 > $1.ll.2 || exit 3
|
../tools/dis/dis < $1.bc.2 > $1.ll.2 || exit 3
|
||||||
diff $1.ll.[12] || exit 3
|
diff $1.ll.[12] || exit 3
|
||||||
|
|
||||||
# Try out SCCP
|
# Try out SCCP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user