AMD: pass more tests, ignore directives