[all-commits] [llvm/llvm-project] 6146a8: [LoongArch] Fix '-mno-lsx' option not disabling LA...

Ami-zhang via All-commits all-commits at lists.llvm.org
Thu Jun 12 21:55:06 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 6146a88f60492b520a36f8f8f3231e15f3cc6082
      https://github.com/llvm/llvm-project/commit/6146a88f60492b520a36f8f8f3231e15f3cc6082
  Author: Ami-zhang <zhanglimin at loongson.cn>
  Date:   2025-06-12 (Thu, 12 Jun 2025)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/LoongArch.cpp
    M clang/test/Preprocessor/init-loongarch.c

  Log Message:
  -----------
  [LoongArch] Fix '-mno-lsx' option not disabling LASX feature (#143821)

When '-march' with LASX feature and '-mno-lsx' options are used
together, '-mno-lsx' fails to disable LASX, leaving
'HasFeatureLASX=true' and causing incorrect '__loongarch_sx/asx=1' macro
definition.

Fixes https://github.com/loongson-community/discussions/issues/95

(cherry picked from commit 2ecbfc0beb42abbbd2c3d28bfd576b38c44a5b46)



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