[all-commits] [llvm/llvm-project] f1987c: [XCore, test] Change llc -march= to -mtriple=

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Dec 15 10:32:01 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1987c74ee5637ec248675a9a7070654167a5260
      https://github.com/llvm/llvm-project/commit/f1987c74ee5637ec248675a9a7070654167a5260
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-12-15 (Sun, 15 Dec 2024)

  Changed paths:
    M llvm/test/CodeGen/XCore/2008-11-17-Shl64.ll
    M llvm/test/CodeGen/XCore/2009-01-08-Crash.ll
    M llvm/test/CodeGen/XCore/2009-01-14-Remat-Crash.ll
    M llvm/test/CodeGen/XCore/2009-03-27-v2f64-param.ll
    M llvm/test/CodeGen/XCore/2009-07-15-store192.ll
    M llvm/test/CodeGen/XCore/2010-02-25-LSR-Crash.ll
    M llvm/test/CodeGen/XCore/2011-01-31-DAGCombineBug.ll
    M llvm/test/CodeGen/XCore/2011-08-01-DynamicAllocBug.ll
    M llvm/test/CodeGen/XCore/DbgValueOtherTargets.test
    M llvm/test/CodeGen/XCore/addsub64.ll
    M llvm/test/CodeGen/XCore/aliases.ll
    M llvm/test/CodeGen/XCore/align.ll
    M llvm/test/CodeGen/XCore/alignment.ll
    M llvm/test/CodeGen/XCore/ashr.ll
    M llvm/test/CodeGen/XCore/atomic.ll
    M llvm/test/CodeGen/XCore/basictest.ll
    M llvm/test/CodeGen/XCore/bigstructret.ll
    M llvm/test/CodeGen/XCore/bitrev.ll
    M llvm/test/CodeGen/XCore/byVal.ll
    M llvm/test/CodeGen/XCore/call.ll
    M llvm/test/CodeGen/XCore/constants.ll
    M llvm/test/CodeGen/XCore/events.ll
    M llvm/test/CodeGen/XCore/exception.ll
    M llvm/test/CodeGen/XCore/fneg.ll
    M llvm/test/CodeGen/XCore/getid.ll
    M llvm/test/CodeGen/XCore/globals.ll
    M llvm/test/CodeGen/XCore/indirectbr.ll
    M llvm/test/CodeGen/XCore/inline-asm.ll
    M llvm/test/CodeGen/XCore/inlineasm-output-template.ll
    M llvm/test/CodeGen/XCore/ladd_lsub_combine.ll
    M llvm/test/CodeGen/XCore/licm-ldwcp.ll
    M llvm/test/CodeGen/XCore/linkage.ll
    M llvm/test/CodeGen/XCore/llvm-intrinsics.ll
    M llvm/test/CodeGen/XCore/load.ll
    M llvm/test/CodeGen/XCore/memcpy.ll
    M llvm/test/CodeGen/XCore/misc-intrinsics.ll
    M llvm/test/CodeGen/XCore/mkmsk.ll
    M llvm/test/CodeGen/XCore/mul64.ll
    M llvm/test/CodeGen/XCore/offset_folding.ll
    M llvm/test/CodeGen/XCore/private.ll
    M llvm/test/CodeGen/XCore/ps-intrinsics.ll
    M llvm/test/CodeGen/XCore/resources.ll
    M llvm/test/CodeGen/XCore/resources_combine.ll
    M llvm/test/CodeGen/XCore/section-name.ll
    M llvm/test/CodeGen/XCore/sext.ll
    M llvm/test/CodeGen/XCore/shedulingPreference.ll
    M llvm/test/CodeGen/XCore/sr-intrinsics.ll
    M llvm/test/CodeGen/XCore/store.ll
    M llvm/test/CodeGen/XCore/switch.ll
    M llvm/test/CodeGen/XCore/switch_long.ll
    M llvm/test/CodeGen/XCore/tls.ll
    M llvm/test/CodeGen/XCore/trampoline.ll
    M llvm/test/CodeGen/XCore/trap.ll
    M llvm/test/CodeGen/XCore/unaligned_load.ll
    M llvm/test/CodeGen/XCore/unaligned_store.ll
    M llvm/test/CodeGen/XCore/unaligned_store_combine.ll
    M llvm/test/CodeGen/XCore/varargs.ll
    M llvm/test/CodeGen/XCore/zext.ll
    M llvm/test/CodeGen/XCore/zextfree.ll

  Log Message:
  -----------
  [XCore,test] Change llc -march= to -mtriple=

Similar to 806761a7629df268c8aed49657aeccffa6bca449

-mtriple= specifies the full target triple while -march= merely sets the
architecture part of the default target triple (e.g. Windows, macOS),
leaving a target triple which may not make sense.

Therefore, -march= is error-prone and not recommended for tests without a target
triple. The issue has been benign as we recognize xcore-apple-darwin as ELF instead
of rejecting it outrightly.



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