Index: compiler-rt/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cpp =================================================================== --- compiler-rt/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cpp +++ compiler-rt/test/sanitizer_common/TestCases/Linux/sem_init_glibc.cpp @@ -30,7 +30,8 @@ // Therefore, it is not enough to rely on the __GLIBC_PREREQ macro - we should // instead check the platform as well to make sure we only expect the new // behavior on platforms where the older symbols do not exist. -#if defined(__arm__) && __GLIBC_PREREQ(2, 21) +#if (defined(__arm__) && __GLIBC_PREREQ(2, 21)) || \ + (defined(__i386__) && __GLIBC_PREREQ(2, 36)) #define GET_SEM_VALUE(V) ((V) >> 1) #else #define GET_SEM_VALUE(V) (V)