Skip to content

Commit 1d7ec8e

Browse files
committed
Update test to reflect chagnes in the lowering pass, where some ops are lowered
to llvm intrinsics.
1 parent edf7291 commit 1d7ec8e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

flang/test/Lower/OpenMP/math-amdgpu.f90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ end subroutine omp_sin_f64
3232
subroutine omp_abs_f32(x, y)
3333
!$omp declare target
3434
real :: x, y
35-
!CHECK: call float @__ocml_fabs_f32(float {{.*}})
35+
!CHECK: call contract float @llvm.fabs.f32(float {{.*}})
3636
y = abs(x)
3737
end subroutine omp_abs_f32
3838

3939
subroutine omp_abs_f64(x, y)
4040
!$omp declare target
4141
real(8) :: x, y
42-
!CHECK: call double @__ocml_fabs_f64(double {{.*}})
42+
!CHECK: call contract double @llvm.fabs.f64(double {{.*}})
4343
y = abs(x)
4444
end subroutine omp_abs_f64
4545

@@ -102,7 +102,7 @@ end subroutine omp_erf_f64
102102
subroutine omp_exp_f32(x, y)
103103
!$omp declare target
104104
real :: x, y
105-
!CHECK: call float @__ocml_exp_f32(float {{.*}})
105+
!CHECK: call contract float @llvm.exp.f32(float {{.*}})
106106
y = exp(x)
107107
end subroutine omp_exp_f32
108108

@@ -116,7 +116,7 @@ end subroutine omp_exp_f64
116116
subroutine omp_log_f32(x, y)
117117
!$omp declare target
118118
real :: x, y
119-
!CHECK: call float @__ocml_log_f32(float {{.*}})
119+
!CHECK: call contract float @llvm.log.f32(float {{.*}})
120120
y = log(x)
121121
end subroutine omp_log_f32
122122

@@ -144,14 +144,14 @@ end subroutine omp_log10_f64
144144
subroutine omp_sqrt_f32(x, y)
145145
!$omp declare target
146146
real :: x, y
147-
!CHECK: call float @__ocml_sqrt_f32(float {{.*}})
147+
!CHECK: call contract float @llvm.sqrt.f32(float {{.*}})
148148
y = sqrt(x)
149149
end subroutine omp_sqrt_f32
150150

151151
subroutine omp_sqrt_f64(x, y)
152152
!$omp declare target
153153
real(8) :: x, y
154-
!CHECK: call double @__ocml_sqrt_f64(double {{.*}})
154+
!CHECK: call contract double @llvm.sqrt.f64(double {{.*}})
155155
y = sqrt(x)
156156
end subroutine omp_sqrt_f64
157157

0 commit comments

Comments
 (0)