Support reference run of SPEC CPU 2006.

(cherry picked from commit 2c53ffe6bb40f9ef486d8d69019d90dbf8be7cb7)