[SystemZ][z/OS] Remove COMPILER_IBMXL macro for z/OS (#87493)

This copies the change made in google benchmark
(70916cbf71)
to remove COMPILER_IBMXL for z/OS.
This commit is contained in:
Fanbo Meng 2024-04-03 09:44:59 -04:00 committed by GitHub
parent e329b68413
commit 4d34b3295f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 7 deletions

View File

@ -181,10 +181,11 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() {
#elif defined(__s390__) // Covers both s390 and s390x. #elif defined(__s390__) // Covers both s390 and s390x.
// Return the CPU clock. // Return the CPU clock.
uint64_t tsc; uint64_t tsc;
#if defined(BENCHMARK_OS_ZOS) && defined(COMPILER_IBMXL) #if defined(BENCHMARK_OS_ZOS)
// z/OS XL compiler HLASM syntax. // z/OS HLASM syntax.
asm(" stck %0" : "=m"(tsc) : : "cc"); asm(" stck %0" : "=m"(tsc) : : "cc");
#else #else
// Linux on Z syntax.
asm("stck %0" : "=Q"(tsc) : : "cc"); asm("stck %0" : "=Q"(tsc) : : "cc");
#endif #endif
return tsc; return tsc;

View File

@ -11,11 +11,7 @@
#endif #endif
#if defined(__clang__) #if defined(__clang__)
#if defined(__ibmxl__) #if !defined(COMPILER_CLANG)
#if !defined(COMPILER_IBMXL)
#define COMPILER_IBMXL
#endif
#elif !defined(COMPILER_CLANG)
#define COMPILER_CLANG #define COMPILER_CLANG
#endif #endif
#elif defined(_MSC_VER) #elif defined(_MSC_VER)