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