We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8733392 commit 17b5ac2Copy full SHA for 17b5ac2
flang/test/Lower/amdgcn-complex.f90
@@ -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
18
19
+! CHECK-LABEL: func @_QPcexpf_test(
20
+! CHECK: complex.exp
21
+! CHECK-NOT: fir.call @cexpf
0 commit comments