This is an archive of the discontinued LLVM Phabricator instance.

[AArch64-SVE]: Test enabling streaming mode for tests of: shifts, extract subverter, build vector, concat, and extract vector elt
AbandonedPublic

Authored by hassnaa-arm on Oct 18 2022, 2:35 AM.

Details

Summary

Test if the generated code is compatible to streaming mode for these new tests:
sve-streaming-fixed-length-int-shifts.ll
sve-streaming-mode-extract-subvector.ll
sve-streaming-mode-fixed-length-build-vector.ll
sve-streaming-mode-fixed-length-concat.ll
sve-streaming-mode-fixed-length-extract-vector-elt.ll
sve-streaming-mode-fixed-length-shuffle.ll
sve-streaming-mode-fixed-length-masked-load.ll
sve-streaming-mode-fixed-length-masked-store.ll
sve-streaming-mode-fixed-length-ext-loads.ll
sve-streaming-mode-fixed-length-trunc-stores.ll

Diff Detail

Event Timeline

hassnaa-arm created this revision.Oct 18 2022, 2:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 18 2022, 2:35 AM
hassnaa-arm requested review of this revision.Oct 18 2022, 2:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 18 2022, 2:35 AM
Matt added a subscriber: Matt.Oct 19 2022, 5:19 AM
david-arm added inline comments.Oct 20 2022, 4:53 AM
llvm/test/CodeGen/AArch64/sve-streaming-mode-extract-subvector.ll
2

I wonder if it's worth adding tests for extracting subvectors with i1 elements, i.e.

%ret = call <4 x i1> @llvm.vector.extract.v4i1.v8i1(<8 x i1> %op, i64 4)

etc.? If it doesn't just work we can always do the i1 types in a follow-on patch!

llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-build-vector.ll
2

It might be good to test build_vector for floating point types as well, e.g. half, float, double, etc. Also might be worth checking that this works:

store <4 x i1> <i1 true, i1 false, i1 true, i1 false>

or something like that?

hassnaa-arm retitled this revision from [AArch64-SVE]: Test enabling streaming mode. to [AArch64-SVE]: Test enabling streaming mode for tests of: shifts, extract subverter, build vector, concat, and extract vector elt.Oct 20 2022, 5:03 AM
hassnaa-arm marked 2 inline comments as done.Oct 21 2022, 5:13 AM

Add shuffle test. add floating-point tests to build_vector test.

Update by parent patch

hassnaa-arm edited the summary of this revision. (Show Details)Oct 21 2022, 8:38 AM
hassnaa-arm abandoned this revision.Oct 24 2022, 2:37 AM

Test files of this patch are moved to another patch that has changes related to them, so no need for this patch now.