25 lines · plain
1# RUN: llc -mtriple=hexagon -mcpu=hexagonv62 -run-pass amode-opt %s -o -2# REQUIRES: asserts3#4# This test merely checks if the pass that optimizes addressing modes in the5# hexagon backend doesn't crash when the following code is presented to it.6#7# This is a testcase reduced from code generated by the Halide compiler for a8# Halide pipeline. This code was causing the pass 'amode-opt' to crash because9# it was looking for the third operand (offset) in the following instruction10# that does not, in fact, have a third operand.11#12# $r1 = L2_loadw_locked $r113#14# Check that this doesn't crash.15 16 17name: fred18tracksRegLiveness: true19body: |20 bb.0:21 liveins: $r022 $r1 = A2_addi $r0, 423 $r1 = L2_loadw_locked $r124...25