compiler tests: restructure runtest.sh a bit

Now only simulator tests run at multiple optimization levels