1; RUN: llc -march=hexagon -disable-hsdr -hexagon-bit=0 < %s | FileCheck %s
2; CHECK: combine(r{{[0-9]+}},r{{[0-9]+}})
3
4@j = external global i32
5@k = external global i64
6
7define void @foo() nounwind {
8entry:
9  %0 = load i32, i32* @j, align 4
10  %1 = load i64, i64* @k, align 8
11  %conv = trunc i64 %1 to i32
12  %2 = call i64 @llvm.hexagon.A2.combinew(i32 %0, i32 %conv)
13  store i64 %2, i64* @k, align 8
14  ret void
15}
16
17declare i64 @llvm.hexagon.A2.combinew(i32, i32) nounwind readnone
18