1 ; RUN: llc -march=hexagon < %s | FileCheck %s
2 ; CHECK: vaddh(r{{[0-9]+}},r{{[0-9]+}})
4 @g0 = external global i32
5 @g1 = external global i32
9 %v0 = load i32, ptr @g0, align 4
10 %v1 = load i32, ptr @g1, align 4
11 %v2 = call i32 @llvm.hexagon.A2.svaddh(i32 %v0, i32 %v1)
12 store i32 %v2, ptr @g1, align 4
16 declare i32 @llvm.hexagon.A2.svaddh(i32, i32) #1
18 attributes #0 = { nounwind "target-cpu"="hexagonv5" }
19 attributes #1 = { nounwind readnone "target-cpu"="hexagonv5" }