Files
clang-p2996/llvm/test/CodeGen/Hexagon/vextract-basic.mir
Fangrui Song 2208c97c1b [Hexagon,test] Change llc -march= to -mtriple=
Similar to 806761a762

-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.

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.
2024-12-15 10:20:22 -08:00

27 lines
715 B
YAML

# RUN: llc -mtriple=hexagon -mattr=+hvx,+hvx-length64b -run-pass hexagon-vextract %s -o - | FileCheck %s
---
name: fred
tracksRegLiveness: true
body: |
bb.0:
liveins: $r0, $r1, $v0
%0:hvxvr = COPY $v0
%1:intregs = COPY $r0
%2:intregs = COPY $r1
%3:intregs = A2_tfrsi 5
%4:intregs = V6_extractw %0, %1
; CHECK: %[[A0:[0-9]+]]:intregs = A2_andir %{{[0-9]+}}, -4
; CHECK: L4_loadri_rr %{{[0-9]+}}, %[[A0]], 0
%5:intregs = V6_extractw %0, %2
; CHECK: %[[A1:[0-9]+]]:intregs = A2_andir %{{[0-9]+}}, -4
; CHECK: L4_loadri_rr %{{[0-9]+}}, %[[A1]], 0
%6:intregs = V6_extractw %0, %3
; Make sure the offset is 4, not 5.
; CHECK: L2_loadri_io %{{[0-9]+}}, 4
...