1 ; RUN: llc -march=hexagon -mcpu=hexagonv66 < %s | FileCheck %s
4 ; CHECK: r0 -= mpyi(r1,r2)
5 define i32 @test1(i32 %rx, i32 %rs, i32 %rt) local_unnamed_addr #0 {
7 %v0 = tail call i32 @llvm.hexagon.M2.mnaci(i32 %rx, i32 %rs, i32 %rt)
11 declare i32 @llvm.hexagon.M2.mnaci(i32, i32, i32) #1
14 ; CHECK: r1:0 = dfadd(r1:0,r3:2)
15 define double @test2(double %rss, double %rtt) local_unnamed_addr #0 {
17 %v0 = tail call double @llvm.hexagon.F2.dfadd(double %rss, double %rtt)
21 declare double @llvm.hexagon.F2.dfadd(double, double) #1
24 ; CHECK: r1:0 = dfsub(r1:0,r3:2)
25 define double @test3(double %rss, double %rtt) local_unnamed_addr #0 {
27 %v0 = tail call double @llvm.hexagon.F2.dfsub(double %rss, double %rtt)
31 declare double @llvm.hexagon.F2.dfsub(double, double) #1
34 ; CHECK: r0 = mask(#1,#2)
35 define i32 @test4() local_unnamed_addr #0 {
37 %v0 = tail call i32 @llvm.hexagon.S2.mask(i32 1, i32 2)
41 ; Function Attrs: nounwind readnone
42 declare i32 @llvm.hexagon.S2.mask(i32, i32) #1
44 attributes #0 = { nounwind readnone "target-cpu"="hexagonv66" "target-features"="-hvx,-long-calls" }
45 attributes #1 = { nounwind readnone }