def check_compile_for_cpu(self, cpu_name):
    cc = self._test_module.cc
    cc.target_cpu = cpu_name
    with self.check_cc_compiled(cc) as lib:
        res = lib.multi(123, 321)
        self.assertPreciseEqual(res, (123 * 321))
        self.assertEqual(lib.multi.__module__, 'pycc_test_simple')
def check_compile_for_cpu(self, cpu_name):
    cc = self._test_module.cc
    cc.target_cpu = cpu_name
    with self.check_cc_compiled(cc) as lib:
        res = lib.multi(123, 321)
        self.assertPreciseEqual(res, (123 * 321))
        self.assertEqual(lib.multi.__module__, 'pycc_test_simple')