Mike Stump | b5ed0f6 | 2010-01-07 22:28:10 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | N_STRUCTS=300 |
| 4 | |
| 5 | # Utility routine to "hand" check VTTs. |
| 6 | |
Mike Stump | 3d3744c | 2010-01-08 19:25:36 +0000 | [diff] [blame] | 7 | let i=1; |
Mike Stump | b5ed0f6 | 2010-01-07 22:28:10 +0000 | [diff] [blame] | 8 | while [ $i != $N_STRUCTS ]; do |
Anders Carlsson | d18b4de | 2010-03-29 03:26:49 +0000 | [diff] [blame] | 9 | sed -n "/^__ZTT.*s$i:/,/\.[sgm][elo]/p" test-clang.s | |
| 10 | grep -v '\.[sgm][elo]' | sed -e 's/[()]//g' -e '/^$/d' >test-clang-ztt |
| 11 | sed -n "/^__ZTT.*s$i:/,/\.[sgm][elo]/p" test-gcc.s | |
| 12 | grep -v '\.[sgm][elo]' | sed -e 's/[()]//g' -e 's/ + /+/' >test-gcc-ztt |
Mike Stump | b5ed0f6 | 2010-01-07 22:28:10 +0000 | [diff] [blame] | 13 | diff -U3 test-gcc-ztt test-clang-ztt |
| 14 | if [ $? != 0 ]; then |
| 15 | echo "FAIL: s$i VTT" |
| 16 | else |
| 17 | echo "PASS: s$i VTT" |
| 18 | fi |
| 19 | let i=i+1 |
| 20 | done |