1 # RUN: llc -march=hexagon -run-pass hexagon-constp %s -o - | FileCheck %s
3 # Check that this doesn't crash.
4 # CHECK: A2_andir killed %{{[0-9]+}}, @g
7 @g = external global i32, align 4
15 tracksRegLiveness: true
18 %1:intregs = IMPLICIT_DEF
19 %0:intregs = L2_loadri_io %1, 0
20 %2:intregs = A2_addi killed %0, -1
21 %3:intregs = A2_subri -1, killed %2
22 %4:intregs = A2_andir killed %3, @g
23 %5:intregs = IMPLICIT_DEF
24 S2_storeri_io %5, 0, killed %4