[flang][openacc] Use OpenACC terminator instead of fir.unreachable after Stop stmt...
[llvm-project.git] / flang / test / Lower / PowerPC / ppc-mma-accumulator-move-clear.f90
blobcc9689b70343c61b5500d6c8df60cc33b8d3632e
1 ! RUN: %flang_fc1 -triple powerpc64le-unknown-unknown -target-cpu pwr10 -emit-llvm %s -o - | FileCheck --check-prefixes="CHECK" %s
2 ! REQUIRES: target=powerpc{{.*}}
4 subroutine test_xxmfacc()
5 use, intrinsic :: mma
6 implicit none
7 __vector_quad :: cq
8 call mma_xxmfacc(cq)
9 end subroutine test_xxmfacc
11 !CHECK-LABEL: @test_xxmfacc_
12 !CHECK: %1 = alloca <512 x i1>, i64 1, align 64
13 !CHECK: %2 = load <512 x i1>, ptr %1, align 64
14 !CHECK: %3 = call <512 x i1> @llvm.ppc.mma.xxmfacc(<512 x i1> %2)
15 !CHECK: store <512 x i1> %3, ptr %1, align 64
17 subroutine test_xxmtacc()
18 use, intrinsic :: mma
19 implicit none
20 __vector_quad :: cq
21 call mma_xxmtacc(cq)
22 end subroutine test_xxmtacc
24 !CHECK-LABEL: @test_xxmtacc_
25 !CHECK: %1 = alloca <512 x i1>, i64 1, align 64
26 !CHECK: %2 = load <512 x i1>, ptr %1, align 64
27 !CHECK: %3 = call <512 x i1> @llvm.ppc.mma.xxmtacc(<512 x i1> %2)
28 !CHECK: store <512 x i1> %3, ptr %1, align 64
30 subroutine test_xxsetaccz()
31 use, intrinsic :: mma
32 implicit none
33 __vector_quad :: cq
34 call mma_xxsetaccz(cq)
35 end subroutine test_xxsetaccz
37 !CHECK-LABEL: @test_xxsetaccz_
38 !CHECK: %1 = alloca <512 x i1>, i64 1, align 64
39 !CHECK: %2 = call <512 x i1> @llvm.ppc.mma.xxsetaccz()
40 !CHECK: store <512 x i1> %2, ptr %1, align 64