Enable optimizer for Fp unit tests and fix an optimizer-related inline assembly code bug