[KERNEL32_APITEST] Enable SSE for TestSSEExceptions. CORE-17202
authorThomas Faber <thomas.faber@reactos.org>
Sat, 15 Aug 2020 19:39:34 +0000 (21:39 +0200)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 23 Aug 2020 10:07:38 +0000 (12:07 +0200)
Clang will not let us use SSE intrinsics at all when compiling for a
target that doesn't support SSE. Since this test is a special case,
we can simply fix this by changing the options for one function.
The alternative would be to use our own inline functions for the
intrinsics instead of the builtins, like we do for GCC.

modules/rostests/apitests/kernel32/SetUnhandledExceptionFilter.c

index e59d5e1..f3a8b1c 100644 (file)
@@ -102,6 +102,9 @@ static LONG WINAPI ExceptionFilterSSEException(LPEXCEPTION_POINTERS exp)
     return EXCEPTION_CONTINUE_EXECUTION;
 }
 
+#ifdef __clang__
+__attribute__((__target__("sse")))
+#endif
 static
 VOID TestSSEExceptions(VOID)
 {