8 Commits

Author SHA1 Message Date
Fangrui Song
9e9907f1cf
[AMDGPU,test] Change llc -march= to -mtriple= (#75982)
Similar to 806761a7629df268c8aed49657aeccffa6bca449.

For IR files without a target triple, -mtriple= specifies the full
target triple while -march= merely sets the architecture part of the
default target triple, leaving a target triple which may not make sense,
e.g. amdgpu-apple-darwin.

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

This patch changes AMDGPU tests to not rely on the default
OS/environment components. Tests that need fixes are not changed:

```
  LLVM :: CodeGen/AMDGPU/fabs.f64.ll
  LLVM :: CodeGen/AMDGPU/fabs.ll
  LLVM :: CodeGen/AMDGPU/floor.ll
  LLVM :: CodeGen/AMDGPU/fneg-fabs.f64.ll
  LLVM :: CodeGen/AMDGPU/fneg-fabs.ll
  LLVM :: CodeGen/AMDGPU/r600-infinite-loop-bug-while-reorganizing-vector.ll
  LLVM :: CodeGen/AMDGPU/schedule-if-2.ll
```
2024-01-16 21:54:58 -08:00
Jay Foad
e1ae0e2b7d [AMDGPU] Fix some check prefixes 2023-04-19 16:15:14 +01:00
Thomas Symalla
2f38de3222 [NFC][AMDGPU] Pre-commit BFI test. 2023-01-11 14:24:06 +01:00
Nikita Popov
bdf2fbba9c [AMDGPU] Convert some tests to opaque pointers (NFC) 2022-12-19 12:41:13 +01:00
Thomas Symalla
5f77ee4011 [NFC][AMDGPU] Pre-commit tests for D136432 2022-11-29 12:57:59 +01:00
Thomas Symalla
d0133bf86d [NFC][AMDGPU] Pre-commit tests for D136432. 2022-11-09 11:23:24 +01:00
Thomas Symalla
1f23cf4e50 [NFC][AMDGPU] Pre-commit test for D136432
Nested BFI instruction with multiple uses.
2022-10-25 10:52:32 +02:00
Thomas Symalla
09fbdde42c [NFC][AMDGPU] Add tests for dependent v_bfi instructions.
This commit adds a few tests which are used to test the codegen
of nested v_bfi instructions. These instruction sequences are
being generated when using the canonical form for bitfieldInsert
and having the sequences being transformed by SimplifyDemandedBits.

This is a pre-commit for a change which enables the backend to
lower these instruction sequences into v_bfi instructions.
2022-10-18 16:57:48 +02:00