mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Changes to make test scripts more reliable
llvm-svn: 319
This commit is contained in:
parent
2143cd75d3
commit
c58c25ffc5
@ -11,7 +11,7 @@ export LD_LIBRARY_PATH
|
||||
# FIXME: We must strip symbols, because the symbol tables are not output in
|
||||
# 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/as/as < $1.ll.1 > $1.bc.2 || exit 3
|
||||
../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!
|
||||
../tools/opt/opt -q -constprop -dce < $1.bc.1 > $1.bc.2 || exit 2
|
||||
|
||||
dis < $1.bc.1 > $1.ll.1 || exit 3
|
||||
dis < $1.bc.2 > $1.ll.2 || exit 3
|
||||
../tools/dis/dis < $1.bc.1 > $1.ll.1 || exit 3
|
||||
../tools/dis/dis < $1.bc.2 > $1.ll.2 || exit 3
|
||||
diff $1.ll.[12] || exit 3
|
||||
|
||||
# Try out SCCP
|
||||
|
Loading…
Reference in New Issue
Block a user