1# RUN: llc -march=hexagon -run-pass hexagon-constp %s -o - | FileCheck %s 2 3# Check that this doesn't crash. 4# CHECK: A2_andir killed %{{[0-9]+}}, @g 5 6--- | 7 @g = external global i32, align 4 8 define void @fred() { 9 ret void 10 } 11... 12 13--- 14name: fred 15tracksRegLiveness: true 16body: | 17 bb.0: 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 25... 26