1# RUN: llc -march=hexagon -run-pass hexagon-packetizer -o - %s | FileCheck %s
2---
3name: fred
4tracksRegLiveness: true
5
6body: |
7  bb.0:
8    ; Check that all these instructions go in the same packet. This is to
9    ; make sure that a target flag (other than HMOTF_ConstExtend) on an
10    ; operand will not be interpreted as a constant-extender flag.
11    ; The combination used below (pcrel + 0) does not technically make sense,
12    ; but combinations that do make sense require constant extending, so
13    ; testing this is not possible otherwise.
14
15    ; CHECK: BUNDLE
16    ; CHECK-DAG: $r0 = A2_tfrsi
17    ; CHECK-DAG: $r1 = A2_tfrsi
18    ; CHECK-DAG: $r2 = A2_tfrsi
19    ; CHECK: }
20    $r0 = A2_tfrsi target-flags (hexagon-pcrel) 0
21    $r1 = A2_tfrsi target-flags (hexagon-pcrel) 0
22    $r2 = A2_tfrsi target-flags (hexagon-pcrel) 0
23...
24
25