8376281: Remove USE_XLC_BUILTINS macro usage in AIX code

Reviewed-by: mdoerr, clanger
This commit is contained in:
Matthias Baesken 2026-01-27 13:30:14 +00:00
parent 992a8ef46b
commit 479ac8b2fd
2 changed files with 3 additions and 15 deletions

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2025 SAP SE. All rights reserved. * Copyright (c) 2012, 2026 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -412,12 +412,8 @@ run_stub:
} }
void os::Aix::init_thread_fpu_state(void) { void os::Aix::init_thread_fpu_state(void) {
#if !defined(USE_XLC_BUILTINS)
// Disable FP exceptions. // Disable FP exceptions.
__asm__ __volatile__ ("mtfsfi 6,0"); __asm__ __volatile__ ("mtfsfi 6,0");
#else
__mtfsfi(6, 0);
#endif
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////

View File

@ -1,6 +1,6 @@
/* /*
* Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2026, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2013 SAP SE. All rights reserved. * Copyright (c) 2012, 2026 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,29 +29,21 @@
// Included in runtime/prefetch.inline.hpp // Included in runtime/prefetch.inline.hpp
inline void Prefetch::read(const void *loc, intx interval) { inline void Prefetch::read(const void *loc, intx interval) {
#if !defined(USE_XLC_BUILTINS)
__asm__ __volatile__ ( __asm__ __volatile__ (
" dcbt 0, %0 \n" " dcbt 0, %0 \n"
: :
: /*%0*/"r" ( ((address)loc) +((long)interval) ) : /*%0*/"r" ( ((address)loc) +((long)interval) )
//: //:
); );
#else
__dcbt(((address)loc) +((long)interval));
#endif
} }
inline void Prefetch::write(void *loc, intx interval) { inline void Prefetch::write(void *loc, intx interval) {
#if !defined(USE_XLC_BUILTINS)
__asm__ __volatile__ ( __asm__ __volatile__ (
" dcbtst 0, %0 \n" " dcbtst 0, %0 \n"
: :
: /*%0*/"r" ( ((address)loc) +((long)interval) ) : /*%0*/"r" ( ((address)loc) +((long)interval) )
//: //:
); );
#else
__dcbtst( ((address)loc) +((long)interval) );
#endif
} }
#endif // OS_CPU_AIX_PPC_PREFETCH_AIX_PPC_INLINE_HPP #endif // OS_CPU_AIX_PPC_PREFETCH_AIX_PPC_INLINE_HPP