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