Skip to content

[Code clean up] [X86 Test] DebugInfo/assignment-tracking/X86/large-type.ll lacks target triple #145416

Open
@badumbatish

Description

@badumbatish

This causes newly built llc that doesn't have a default host or a too specific host to fail to run the test.
For example, with this build command (without -DLLVM_DEFAULT_TARGET_TRIPLE=arm):

 cmake -S llvm -B build -G Ninja -DLLVM_ENABLE_ASSERTIONS=true -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_TARGETS_TO_BUILD="WebAssembly;RISCV;ARM;X86" -DLLVM_CCACHE_BUILD=true -DCMAKE_LINKER_TYPE=LLD -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DCMAKE_C_COMPILER=$HOME/Developer/igalia/LLVM-20.1.7-macOS-ARM64/bin/clang -DCMAKE_CXX_COMPILER=$HOME/Developer/igalia/LLVM-20.1.7-macOS-ARM64/bin/clang++

that produces this llc

 build/bin/llc --version

LLVM (http://llvm.org/):
  LLVM version 21.0.0git
  Optimized build with assertions.
  Default target:
  Host CPU: apple-m2

  Registered Targets:
    arm     - ARM
    armeb   - ARM (big endian)
    riscv32 - 32-bit RISC-V
    riscv64 - 64-bit RISC-V
    thumb   - Thumb
    thumbeb - Thumb (big endian)
    wasm32  - WebAssembly 32-bit
    wasm64  - WebAssembly 64-bit
    x86     - 32-bit X86: Pentium-Pro and above
    x86-64  - 64-bit X86: EM64T and AMD64
********************
FAIL: LLVM :: DebugInfo/assignment-tracking/X86/large-type.ll (2 of 57719)
******************** TEST 'LLVM :: DebugInfo/assignment-tracking/X86/large-type.ll' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
/Users/jjasmine/Developer/igalia/llvm-project/build/bin/llc /Users/jjasmine/Developer/igalia/llvm-project/llvm/test/DebugInfo/assignment-tracking/X86/large-type.ll -stop-after=finalize-isel -o -  | /Users/jjasmine/Developer/igalia/llvm-project/build/bin/FileCheck /Users/jjasmine/Developer/igalia/llvm-project/llvm/test/DebugInfo/assignment-tracking/X86/large-type.ll --implicit-check-not=DBG_ # RUN: at line 1
+ /Users/jjasmine/Developer/igalia/llvm-project/build/bin/llc /Users/jjasmine/Developer/igalia/llvm-project/llvm/test/DebugInfo/assignment-tracking/X86/large-type.ll -stop-after=finalize-isel -o -
+ /Users/jjasmine/Developer/igalia/llvm-project/build/bin/FileCheck /Users/jjasmine/Developer/igalia/llvm-project/llvm/test/DebugInfo/assignment-tracking/X86/large-type.ll --implicit-check-not=DBG_
/Users/jjasmine/Developer/igalia/llvm-project/build/bin/llc: error: unable to get target for '', see --version and --triple.
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /Users/jjasmine/Developer/igalia/llvm-project/build/bin/FileCheck /Users/jjasmine/Developer/igalia/llvm-project/llvm/test/DebugInfo/assignment-tracking/X86/large-type.ll --implicit-check-not=DBG_

I'm happy to take this up if assigned.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions