Skip to content

Commit 17b5ac2

Browse files
committed
Add test
1 parent 8733392 commit 17b5ac2

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
! REQUIRES: amdgpu-registered-target
2+
! RUN: %flang_fc1 -triple amdgcn-amd-amdhsa -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
3+
4+
subroutine cabsf_test(a, b)
5+
complex :: a
6+
real :: b
7+
b = abs(a)
8+
end subroutine
9+
10+
! CHECK-LABEL: func @_QPcabsf_test(
11+
! CHECK: complex.abs
12+
! CHECK-NOT: fir.call @cabsf
13+
14+
subroutine cexpf_test(a, b)
15+
complex :: a, b
16+
b = exp(a)
17+
end subroutine
18+
19+
! CHECK-LABEL: func @_QPcexpf_test(
20+
! CHECK: complex.exp
21+
! CHECK-NOT: fir.call @cexpf

0 commit comments

Comments
 (0)