testsuite: Fix sse2-andnpd-1.c and sse-andnps-1.c testscases on powerpc
[gcc.git] / gcc / testsuite / gcc.target / powerpc / m128-check.h
index fcb631a19ff05b580c8c9c311bf56f467a533777..3df96524d955f1186dd8300e80094aa5a9cdb3d9 100644 (file)
@@ -85,6 +85,7 @@ typedef union
 
 #define CHECK_EXP(UINON_TYPE, VALUE_TYPE, FMT)         \
 static int                                             \
+__attribute__((optimize ("no-strict-aliasing")))       \
 __attribute__((noinline, unused))                      \
 check_##UINON_TYPE (UINON_TYPE u, const VALUE_TYPE *v) \
 {                                                      \