1 # RUN: llc -march=hexagon -run-pass hexagon-cext-opt %s -o - | FileCheck %s
3 # An incorrect assertion was triggered on this code, while attempting to
4 # perform a valid transformation.
9 define void @fred() { ret void }
11 @array = global [1024 x i8] zeroinitializer, align 8
16 tracksRegLiveness: true
18 - { id: 0, class: intregs }
19 - { id: 1, class: intregs }
20 - { id: 2, class: intregs }
21 - { id: 3, class: predregs }
22 - { id: 4, class: intregs }
23 - { id: 5, class: intregs }
24 - { id: 6, class: intregs }
25 - { id: 7, class: intregs }
26 - { id: 8, class: intregs }
27 - { id: 9, class: intregs }
36 %4 = A2_tfrsi @array+424
37 %5 = M2_macsip %0, %1, 5
40 S4_pstorerif_rr %3, %6, %5, 2, %7
41 %8 = A2_tfrsi @array+144
42 %9 = C2_mux %3, %4, %8
43 S4_storeiri_io %9, 0, 0
44 PS_jmpret $r31, implicit-def $pc