[all-commits] [llvm/llvm-project] 526dc2: [AIX] [PowerPC] Auto-enable modern-aix-as feature ...

Riyaz Ahmad via All-commits all-commits at lists.llvm.org
Wed Feb 11 20:22:51 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 526dc256b5763b46d502d58f834bfd520147eaab
      https://github.com/llvm/llvm-project/commit/526dc256b5763b46d502d58f834bfd520147eaab
  Author: Riyaz Ahmad <69200125+riyaz86a at users.noreply.github.com>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/PPC.cpp
    M clang/test/Driver/aix-as.c

  Log Message:
  -----------
  [AIX] [PowerPC] Auto-enable modern-aix-as feature by default with integrated assembler. (#180778)

**Issue**:
Certain instruction aliases (e.g. `mfsprg`) defined in PowerPC tablegen
as InstAlias are gated behind the ModernAs predicate as InstAlias.

Without the `+modern-aix-as` target feature enabled, the `ModernAs`
predicate is not satisfied and these instructions aliases are
unavailable. This caused assembly failures on AIX unless user manually
specify below options.
   `-Xclang -target-feature -Xclang +modern-aix-as`

**Solution**:
Automatically enable the` +modern-aix-as` target feature when:
 - The target triple is AIX.
- The integrated assembler is being used (default or -`fintegrated-as`).

This feature is not enabled when `-fno-integrated-as` is specified.

Co-authored-by: Riyaz Ahmad <riyaz.ahmad at ibm.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list