add F(X)g(X) into AMD program