brintos

brintos / llvm-project-archived public Read only

0
0
Text · 515 B · 4a83c55 Raw
21 lines · plain
1#!/bin/sh2 3N_STRUCTS=3004 5# Utility routine to "hand" check VTTs.6 7let i=1;8while [ $i != $N_STRUCTS ]; do9  sed -n "/^__ZTT.*s$i:/,/\.[sgm][elo]/p" test-clang.s |10    grep -v '\.[sgm][elo]' | sed -e 's/[()]//g' -e '/^$/d'  >test-clang-ztt11  sed -n "/^__ZTT.*s$i:/,/\.[sgm][elo]/p" test-gcc.s |12    grep -v '\.[sgm][elo]' | sed -e 's/[()]//g' -e 's/ + /+/'  >test-gcc-ztt13  diff -U3 test-gcc-ztt test-clang-ztt14  if [ $? != 0 ]; then15     echo "FAIL: s$i VTT"16  else17     echo "PASS: s$i VTT"18  fi19  let i=i+120done21