intrinsics-v66.ll
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
; RUN: llc -march=hexagon -mcpu=hexagonv66 < %s | FileCheck %s
; CHECK-LABEL: @test1
; CHECK: r0 -= mpyi(r1,r2)
define i32 @test1(i32 %rx, i32 %rs, i32 %rt) local_unnamed_addr #0 {
entry:
%v0 = tail call i32 @llvm.hexagon.M2.mnaci(i32 %rx, i32 %rs, i32 %rt)
ret i32 %v0
}
declare i32 @llvm.hexagon.M2.mnaci(i32, i32, i32) #1
; CHECK-LABEL: @test2
; CHECK: r1:0 = dfadd(r1:0,r3:2)
define double @test2(double %rss, double %rtt) local_unnamed_addr #0 {
entry:
%v0 = tail call double @llvm.hexagon.F2.dfadd(double %rss, double %rtt)
ret double %v0
}
declare double @llvm.hexagon.F2.dfadd(double, double) #1
; CHECK-LABEL: @test3
; CHECK: r1:0 = dfsub(r1:0,r3:2)
define double @test3(double %rss, double %rtt) local_unnamed_addr #0 {
entry:
%v0 = tail call double @llvm.hexagon.F2.dfsub(double %rss, double %rtt)
ret double %v0
}
declare double @llvm.hexagon.F2.dfsub(double, double) #1
; CHECK-LABEL: @test4
; CHECK: r0 = mask(#1,#2)
define i32 @test4() local_unnamed_addr #0 {
entry:
%v0 = tail call i32 @llvm.hexagon.S2.mask(i32 1, i32 2)
ret i32 %v0
}
; Function Attrs: nounwind readnone
declare i32 @llvm.hexagon.S2.mask(i32, i32) #1
attributes #0 = { nounwind readnone "target-cpu"="hexagonv66" "target-features"="-hvx,-long-calls" }
attributes #1 = { nounwind readnone }