1# RUN: llc -march=hexagon -run-pass hexagon-split-double %s -o - | FileCheck %s
2
3# This used to crash because the constant operand was not an immediate.
4# Make sure we can handle such a case.
5
6# CHECK-DAG: = A2_tfrsi 0
7# CHECK-DAG: = A2_tfrsi @g0
8
9--- |
10  define i32 @fred() {
11    ret i32 0
12  }
13
14  @g0 = global i32 zeroinitializer
15...
16
17name: fred
18tracksRegLiveness: true
19body: |
20  bb.0:
21    %0:doubleregs = A4_combineii 0, @g0
22    $r0 = COPY %0.isub_lo
23    PS_jmpret $r31, implicit-def $pc, implicit $r0
24...
25