fix vp9 only build

Change-Id: I7a1a7190dc32c65846a897a3162a02d63e59719f
diff --git a/test/sad_test.cc b/test/sad_test.cc
index 401fa1d..a692891 100644
--- a/test/sad_test.cc
+++ b/test/sad_test.cc
@@ -545,10 +545,12 @@
 
 #if HAVE_SSSE3
 #if CONFIG_USE_X86INC
+#if CONFIG_VP8_ENCODER
 const sad_m_by_n_fn_t sad_16x16_sse3 = vp8_sad16x16_sse3;
 INSTANTIATE_TEST_CASE_P(SSE3, SADTest, ::testing::Values(
                         make_tuple(16, 16, sad_16x16_sse3)));
 #endif
 #endif
+#endif
 
 }  // namespace