Skip to content

Commit c1e2d97

Browse files
author
Justin Lebar
committed
[NVPTX] Add CHECK-LABEL where appropriate to fast-math.ll test.
Also fix up whitespace. Test-only change. llvm-svn: 291617
1 parent 330e1b8 commit c1e2d97

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

llvm/test/CodeGen/NVPTX/fast-math.ll

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
; RUN: llc < %s -march=nvptx -mcpu=sm_20 | FileCheck %s
22

3-
43
declare float @llvm.nvvm.sqrt.f(float)
54

6-
7-
; CHECK: sqrt_div
5+
; CHECK-LABEL: sqrt_div
86
; CHECK: sqrt.rn.f32
97
; CHECK: div.rn.f32
108
define float @sqrt_div(float %a, float %b) {
@@ -13,7 +11,7 @@ define float @sqrt_div(float %a, float %b) {
1311
ret float %t2
1412
}
1513

16-
; CHECK: sqrt_div_fast
14+
; CHECK-LABEL: sqrt_div_fast
1715
; CHECK: sqrt.approx.f32
1816
; CHECK: div.approx.f32
1917
define float @sqrt_div_fast(float %a, float %b) #0 {
@@ -22,22 +20,19 @@ define float @sqrt_div_fast(float %a, float %b) #0 {
2220
ret float %t2
2321
}
2422

25-
26-
; CHECK: fadd
23+
; CHECK-LABEL: fadd
2724
; CHECK: add.f32
2825
define float @fadd(float %a, float %b) {
2926
%t1 = fadd float %a, %b
3027
ret float %t1
3128
}
3229

33-
; CHECK: fadd_ftz
30+
; CHECK-LABEL: fadd_ftz
3431
; CHECK: add.ftz.f32
3532
define float @fadd_ftz(float %a, float %b) #1 {
3633
%t1 = fadd float %a, %b
3734
ret float %t1
3835
}
3936

40-
41-
4237
attributes #0 = { "unsafe-fp-math" = "true" }
4338
attributes #1 = { "nvptx-f32ftz" = "true" }

0 commit comments

Comments
 (0)