This invention relates to the field of
SIMD technology on the Shenwei platform, and particularly to a method for implementing
SIMD intrinsics based on the Shenwei platform. The method includes the following steps: S1: Scan the
source code to determine if there are x86 intrinsic functions; S2: Determine if the x86 intrinsic functions can be reconstructed on the Shenwei platform; S3: Reconstruct the x86 intrinsic functions; S4: Perform testing; Test the x86 intrinsic functions reconstructed on the Shenwei platform in step S3 using libjpeg test cases. If the test results on the Shenwei platform are consistent with the test results on the x86 platform, it proves that the
SIMD intrinsic functions on the Shenwei platform and the x86 intrinsic functions have the same functionality. This method can achieve x86 intrinsic compatibility at the
source code level.