File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 1
1
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
2
2
3
-
4
3
declare float @llvm.nvvm.sqrt.f (float )
5
4
6
-
7
- ; CHECK: sqrt_div
5
+ ; CHECK-LABEL: sqrt_div
8
6
; CHECK: sqrt.rn.f32
9
7
; CHECK: div.rn.f32
10
8
define float @sqrt_div (float %a , float %b ) {
@@ -13,7 +11,7 @@ define float @sqrt_div(float %a, float %b) {
13
11
ret float %t2
14
12
}
15
13
16
- ; CHECK: sqrt_div_fast
14
+ ; CHECK-LABEL : sqrt_div_fast
17
15
; CHECK: sqrt.approx.f32
18
16
; CHECK: div.approx.f32
19
17
define float @sqrt_div_fast (float %a , float %b ) #0 {
@@ -22,22 +20,19 @@ define float @sqrt_div_fast(float %a, float %b) #0 {
22
20
ret float %t2
23
21
}
24
22
25
-
26
- ; CHECK: fadd
23
+ ; CHECK-LABEL: fadd
27
24
; CHECK: add.f32
28
25
define float @fadd (float %a , float %b ) {
29
26
%t1 = fadd float %a , %b
30
27
ret float %t1
31
28
}
32
29
33
- ; CHECK: fadd_ftz
30
+ ; CHECK-LABEL : fadd_ftz
34
31
; CHECK: add.ftz.f32
35
32
define float @fadd_ftz (float %a , float %b ) #1 {
36
33
%t1 = fadd float %a , %b
37
34
ret float %t1
38
35
}
39
36
40
-
41
-
42
37
attributes #0 = { "unsafe-fp-math" = "true" }
43
38
attributes #1 = { "nvptx-f32ftz" = "true" }
You can’t perform that action at this time.
0 commit comments