Files
clang-p2996/llvm/test/CodeGen/Hexagon/postinc-baseoffset.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

23 lines
568 B
YAML

# RUN: llc -mtriple=hexagon -start-before hexagon-packetizer %s -o - | FileCheck %s
# Check that we don't packetize these two instructions together. It happened
# earlier because "offset" in the post-increment instruction was taken to be 8.
# CHECK: memw(r0+#0) = #-1
# CHECK: }
# CHECK: {
# CHECK: r1 = memw(r0++#8)
--- |
define void @fred(ptr %a) { ret void }
...
---
name: fred
tracksRegLiveness: true
body: |
bb.0:
liveins: $r0
S4_storeiri_io $r0, 0, -1 :: (store (s32) into %ir.a)
$r1, $r0 = L2_loadri_pi $r0, 8 :: (load (s32) from %ir.a)