Skip to content

Commit

Permalink
Replace asm with __asm__ builtin
Browse files Browse the repository at this point in the history
Signed-off-by: midronij <jackie.midroni@ibm.com>
  • Loading branch information
midronij authored and ishitaR88 committed Sep 13, 2024
1 parent 0621047 commit 00061b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/omrutil/gettimebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ getTimebase(void)
tsc = __builtin_ppc_get_timebase();
#else /* GCC < 4.8 or XLC */
#if defined(OMR_ENV_DATA64)
#if defined(__xlC__)
#if defined(__xlC__)
/* PPC64 & XLC */
tsc = __mftb();
#else /* !XLC */
/* PPC64 & !XLC */
asm volatile("mftb %0" : "=r" (tsc));
__asm__ volatile("mftb %0" : "=r" (tsc));
#endif /* __xlC__ */

#else /* !OMR_ENV_DATA64 */
Expand Down

0 comments on commit 00061b4

Please sign in to comment.