[llvm] [PowerPC ][NFC] Add a test case for the function atomic_compare_exchange_weak (PR #141263)
Amy Kwan via llvm-commits
llvm-commits at lists.llvm.org
Fri May 23 11:32:57 PDT 2025
================
@@ -0,0 +1,100 @@
+; Test the generate asm of function
+; int foo(_Atomic int *cp, int *old, int c) {
+; return atomic_compare_exchange_weak_explicit(cp, old, c, __ATOMIC_RELAXED, __ATOMIC_RELAXED);
+; }
+
+; RUN: llc < %s -ppc-asm-full-reg-names -mtriple=powerpc-ibm-aix7.2.0.0 -mcpu=pwr8 -verify-machineinstrs | FileCheck %s --check-prefix=CHECK
----------------
amy-kwan wrote:
Can `powerpc-ibm-aix-xcoff`/`powerpc64-ibm-aix-xcoff` be used instead, or do we have to use the 7.2 version of the triple?
https://github.com/llvm/llvm-project/pull/141263
More information about the llvm-commits
mailing list