1 ; RUN: llc -march=hexagon -mcpu=hexagonv5 -O3 < %s | FileCheck %s
3 ; Check that we combine TFRs and TFRIs into COMBINEs.
5 @a = external global i16
6 @b = external global i16
7 @c = external global i16
9 ; Function Attrs: nounwind
10 define i64 @test1() #0 {
11 ; CHECK: combine(#10, #0)
13 store i16 0, i16* @a, align 2
14 store i16 10, i16* @b, align 2
18 ; Function Attrs: nounwind
19 define i64 @test2() #0 {
20 ; CHECK: combine(#0, r{{[0-9]+}})
22 store i16 0, i16* @a, align 2
23 %0 = load i16* @c, align 2
24 %conv2 = zext i16 %0 to i64
28 ; Function Attrs: nounwind
29 define i64 @test4() #0 {
30 ; CHECK: combine(#0, ##100)
32 store i16 100, i16* @b, align 2
33 store i16 0, i16* @a, align 2