[memprof] Move YAML support to MemProfYAML.h (NFC) (#119515)
[llvm-project.git] / flang / test / Lower / PowerPC / ppc-mma-accumulator-move-clear.f90
blobce07f202a944d372d6690707c0f6751eb0c0f5a4
1 ! RUN: %flang_fc1 -flang-experimental-hlfir -triple powerpc64le-unknown-unknown -target-cpu pwr10 -emit-llvm %s -o - | FileCheck --check-prefixes="LLVMIR" %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 !LLVMIR: %1 = alloca <512 x i1>, i64 1, align 64
13 !LLVMIR: %2 = load <512 x i1>, ptr %1, align 64
14 !LLVMIR: %3 = call <512 x i1> @llvm.ppc.mma.xxmfacc(<512 x i1> %2)
15 !LLVMIR: 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 !LLVMIR: %1 = alloca <512 x i1>, i64 1, align 64
26 !LLVMIR: %2 = load <512 x i1>, ptr %1, align 64
27 !LLVMIR: %3 = call <512 x i1> @llvm.ppc.mma.xxmtacc(<512 x i1> %2)
28 !LLVMIR: 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 !LLVMIR: %1 = alloca <512 x i1>, i64 1, align 64
39 !LLVMIR: %2 = call <512 x i1> @llvm.ppc.mma.xxsetaccz()
40 !LLVMIR: store <512 x i1> %2, ptr %1, align 64