Skip to content

Commit b152611

Browse files
[NFC][Clang] Merge SVE bfloat specific acle tests with non-bfloat tests.
1 parent 77914c9 commit b152611

File tree

116 files changed

+4194
-5454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+4194
-5454
lines changed

clang/test/CodeGen/AArch64/sve-intrinsics/acle_sve_clasta-bfloat.c

Lines changed: 0 additions & 58 deletions
This file was deleted.

clang/test/CodeGen/AArch64/sve-intrinsics/acle_sve_clasta.c

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,3 +423,37 @@ float64_t test_svclasta_n_f64(svbool_t pg, float64_t fallback, svfloat64_t data)
423423
{
424424
return SVE_ACLE_FUNC(svclasta,_n_f64,,)(pg, fallback, data);
425425
}
426+
427+
// CHECK-LABEL: @test_svclasta_bf16(
428+
// CHECK-NEXT: entry:
429+
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]])
430+
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.clasta.nxv8bf16(<vscale x 8 x i1> [[TMP0]], <vscale x 8 x bfloat> [[FALLBACK:%.*]], <vscale x 8 x bfloat> [[DATA:%.*]])
431+
// CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]]
432+
//
433+
// CPP-CHECK-LABEL: @_Z18test_svclasta_bf16u10__SVBool_tu14__SVBfloat16_tS0_(
434+
// CPP-CHECK-NEXT: entry:
435+
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]])
436+
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.clasta.nxv8bf16(<vscale x 8 x i1> [[TMP0]], <vscale x 8 x bfloat> [[FALLBACK:%.*]], <vscale x 8 x bfloat> [[DATA:%.*]])
437+
// CPP-CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]]
438+
//
439+
svbfloat16_t test_svclasta_bf16(svbool_t pg, svbfloat16_t fallback, svbfloat16_t data) MODE_ATTR {
440+
// expected-warning@+1 {{implicit declaration of function 'svclasta_bf16'}}
441+
return SVE_ACLE_FUNC(svclasta, _bf16, , )(pg, fallback, data);
442+
}
443+
444+
// CHECK-LABEL: @test_svclasta_n_bf16(
445+
// CHECK-NEXT: entry:
446+
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]])
447+
// CHECK-NEXT: [[TMP1:%.*]] = tail call bfloat @llvm.aarch64.sve.clasta.n.nxv8bf16(<vscale x 8 x i1> [[TMP0]], bfloat [[FALLBACK:%.*]], <vscale x 8 x bfloat> [[DATA:%.*]])
448+
// CHECK-NEXT: ret bfloat [[TMP1]]
449+
//
450+
// CPP-CHECK-LABEL: @_Z20test_svclasta_n_bf16u10__SVBool_tu6__bf16u14__SVBfloat16_t(
451+
// CPP-CHECK-NEXT: entry:
452+
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]])
453+
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call bfloat @llvm.aarch64.sve.clasta.n.nxv8bf16(<vscale x 8 x i1> [[TMP0]], bfloat [[FALLBACK:%.*]], <vscale x 8 x bfloat> [[DATA:%.*]])
454+
// CPP-CHECK-NEXT: ret bfloat [[TMP1]]
455+
//
456+
bfloat16_t test_svclasta_n_bf16(svbool_t pg, bfloat16_t fallback, svbfloat16_t data) MODE_ATTR {
457+
// expected-warning@+1 {{implicit declaration of function 'svclasta_n_bf16'}}
458+
return SVE_ACLE_FUNC(svclasta, _n_bf16, , )(pg, fallback, data);
459+
}

clang/test/CodeGen/AArch64/sve-intrinsics/acle_sve_clastb-bfloat.c

Lines changed: 0 additions & 58 deletions
This file was deleted.

clang/test/CodeGen/AArch64/sve-intrinsics/acle_sve_clastb.c

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,3 +423,37 @@ float64_t test_svclastb_n_f64(svbool_t pg, float64_t fallback, svfloat64_t data)
423423
{
424424
return SVE_ACLE_FUNC(svclastb,_n_f64,,)(pg, fallback, data);
425425
}
426+
427+
// CHECK-LABEL: @test_svclastb_bf16(
428+
// CHECK-NEXT: entry:
429+
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]])
430+
// CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.clastb.nxv8bf16(<vscale x 8 x i1> [[TMP0]], <vscale x 8 x bfloat> [[FALLBACK:%.*]], <vscale x 8 x bfloat> [[DATA:%.*]])
431+
// CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]]
432+
//
433+
// CPP-CHECK-LABEL: @_Z18test_svclastb_bf16u10__SVBool_tu14__SVBfloat16_tS0_(
434+
// CPP-CHECK-NEXT: entry:
435+
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]])
436+
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call <vscale x 8 x bfloat> @llvm.aarch64.sve.clastb.nxv8bf16(<vscale x 8 x i1> [[TMP0]], <vscale x 8 x bfloat> [[FALLBACK:%.*]], <vscale x 8 x bfloat> [[DATA:%.*]])
437+
// CPP-CHECK-NEXT: ret <vscale x 8 x bfloat> [[TMP1]]
438+
//
439+
svbfloat16_t test_svclastb_bf16(svbool_t pg, svbfloat16_t fallback, svbfloat16_t data) MODE_ATTR {
440+
// expected-warning@+1 {{implicit declaration of function 'svclastb_bf16'}}
441+
return SVE_ACLE_FUNC(svclastb, _bf16, , )(pg, fallback, data);
442+
}
443+
444+
// CHECK-LABEL: @test_svclastb_n_bf16(
445+
// CHECK-NEXT: entry:
446+
// CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]])
447+
// CHECK-NEXT: [[TMP1:%.*]] = tail call bfloat @llvm.aarch64.sve.clastb.n.nxv8bf16(<vscale x 8 x i1> [[TMP0]], bfloat [[FALLBACK:%.*]], <vscale x 8 x bfloat> [[DATA:%.*]])
448+
// CHECK-NEXT: ret bfloat [[TMP1]]
449+
//
450+
// CPP-CHECK-LABEL: @_Z20test_svclastb_n_bf16u10__SVBool_tu6__bf16u14__SVBfloat16_t(
451+
// CPP-CHECK-NEXT: entry:
452+
// CPP-CHECK-NEXT: [[TMP0:%.*]] = tail call <vscale x 8 x i1> @llvm.aarch64.sve.convert.from.svbool.nxv8i1(<vscale x 16 x i1> [[PG:%.*]])
453+
// CPP-CHECK-NEXT: [[TMP1:%.*]] = tail call bfloat @llvm.aarch64.sve.clastb.n.nxv8bf16(<vscale x 8 x i1> [[TMP0]], bfloat [[FALLBACK:%.*]], <vscale x 8 x bfloat> [[DATA:%.*]])
454+
// CPP-CHECK-NEXT: ret bfloat [[TMP1]]
455+
//
456+
bfloat16_t test_svclastb_n_bf16(svbool_t pg, bfloat16_t fallback, svbfloat16_t data) MODE_ATTR {
457+
// expected-warning@+1 {{implicit declaration of function 'svclastb_n_bf16'}}
458+
return SVE_ACLE_FUNC(svclastb, _n_bf16, , )(pg, fallback, data);
459+
}

clang/test/CodeGen/AArch64/sve-intrinsics/acle_sve_cnt-bfloat.c

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)