1 # RUN: llc -march=hexagon -mcpu=hexagonv62 -run-pass amode-opt %s -o -
4 # This test merely checks if the pass that optimizes addressing modes in the
5 # hexagon backend doesn't crash when the following code is presented to it.
7 # This is a testcase reduced from code generated by the Halide compiler for a
8 # Halide pipeline. This code was causing the pass 'amode-opt' to crash because
9 # it was looking for the third operand (offset) in the following instruction
10 # that does not, in fact, have a third operand.
12 # $r1 = L2_loadw_locked $r1
14 # Check that this doesn't crash.
18 tracksRegLiveness: true
23 $r1 = L2_loadw_locked $r1