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