1# RUN: llc -march=hexagon -start-after if-converter %s -o - | FileCheck %s
2# This used to crash.
3# CHECK: add(r0,##g)
4
5--- |
6  @g = global i32 0
7  define void @fred() {
8    ret void
9  }
10...
11
12---
13name: fred
14tracksRegLiveness: true
15
16body: |
17  bb.0:
18    liveins: $r0
19    $r0 = A2_addi $r0, @g
20    $r1 = A2_tfrsi 0
21...
22
23