xref: /llvm-project/llvm/test/CodeGen/Hexagon/spill-vector-alignment.mir (revision 2208c97c1bec2512d4e47b6223db6d95a7037956)
1# RUN: llc -mtriple=hexagon -run-pass prologepilog %s -o - | FileCheck %s
2
3# Check that the spill of $q0 no longer uses unaligned store instruction.
4# CHECK: V6_vS32b_ai $r16, -256, killed $v0
5
6---
7name:            test
8tracksRegLiveness: true
9stack:
10  - { id: 0, type: variable-sized, offset: 0, alignment: 1 }
11  - { id: 1, type: spill-slot, size: 128, alignment: 128 }
12body: |
13  bb.0:
14    liveins: $q0
15    $r16 = PS_aligna 128, implicit $r30
16    PS_vstorerq_ai %stack.1, 0, $q0
17...
18