Skip to content

[Clang][LLVM] Implement multi-multi vectors MOP4{A/S} #129230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

virginia-cangelosi
Copy link
Contributor

Implement all multi-multi {BF/F/S/U/SU/US}MOP4{A/S} instructions in clang and llvm following the acle in https://github.com/ARM-software/acle/pull/381/files

@virginia-cangelosi virginia-cangelosi force-pushed the mu_mu_vec branch 2 times, most recently from a5c547f to 62bf165 Compare March 7, 2025 17:03
@Lukacma Lukacma self-requested a review March 10, 2025 10:16
[IsStreaming, IsInOutZA],
checks>;
def _2x2 : SInst<"svmop4" # mode # "[_2x2]_" # za # "[_{d}_{3}]",
"vi2.x2.u", t, MergeNone, "aarch64_sme_sumop4" # mode # i # "_wide_2x2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"vi2.x2.u", t, MergeNone, "aarch64_sme_sumop4" # mode # i # "_wide_2x2",
"vi22.u", t, MergeNone, "aarch64_sme_sumop4" # mode # i # "_wide_2x2",

[IsStreaming, IsInOutZA],
checks>;
def _2x2 : SInst<"svmop4" # mode # "[_2x2]_" # za # "[_{d}_{3}]",
"vi2.u2.x", t, MergeNone, "aarch64_sme_usmop4" # mode # i # "_wide_2x2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"vi2.u2.x", t, MergeNone, "aarch64_sme_usmop4" # mode # i # "_wide_2x2",
"vi22.x", t, MergeNone, "aarch64_sme_usmop4" # mode # i # "_wide_2x2",

"vi2u", t, MergeNone, "aarch64_sme_sumop4" # mode # i # "_wide_2x1",
[IsStreaming, IsInOutZA],
checks>;
def _2x2 : SInst<"svmop4" # mode # "[_2x2]_" # za # "[_{d}_{3}]",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/"[2x2]" /"[2x2]"/
and # za # value should start with '
'

}

let SMETargetGuard = "sme2,sme-mop4" in {
defm SVFMOP4A_HtoS : MOP4<"a", "za32", "hb", "aarch64_sme_mop4a_wide", [ImmCheck<0, ImmCheck0_3>]>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this patch will be rebased, when this is done the _ at the should be gone

@virginia-cangelosi virginia-cangelosi merged commit 7948775 into llvm:main Apr 1, 2025
11 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 1, 2025

LLVM Buildbot has detected a new failure on builder lldb-x86_64-debian running on lldb-x86_64-debian while building clang,llvm at step 6 "test".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/19320

Here is the relevant piece of the build log for the reference
Step 6 (test) failure: build (failure)
...
PASS: lldb-api :: commands/thread/select/TestThreadSelect.py (332 of 2805)
PASS: lldb-api :: tools/lldb-server/inferior-crash/TestGdbRemoteSegFault.py (333 of 2805)
PASS: lldb-api :: lang/cpp/namespace_definitions/TestNamespaceDefinitions.py (334 of 2805)
PASS: lldb-api :: lang/cpp/char8_t/TestCxxChar8_t.py (335 of 2805)
PASS: lldb-api :: lang/cpp/char1632_t/TestChar1632T.py (336 of 2805)
PASS: lldb-api :: tools/lldb-dap/stackTrace/TestDAP_stackTrace.py (337 of 2805)
PASS: lldb-api :: commands/platform/process/launch/TestPlatformProcessLaunch.py (338 of 2805)
PASS: lldb-api :: functionalities/gdb_remote_client/TestTargetXMLArch.py (339 of 2805)
PASS: lldb-api :: functionalities/breakpoint/step_over_breakpoint/TestStepOverBreakpoint.py (340 of 2805)
PASS: lldb-api :: commands/memory/read/TestMemoryRead.py (341 of 2805)
FAIL: lldb-api :: python_api/hello_world/TestHelloWorld.py (342 of 2805)
******************** TEST 'lldb-api :: python_api/hello_world/TestHelloWorld.py' FAILED ********************
Script:
--
/usr/bin/python3 /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/worker/2.0.1/lldb-x86_64-debian/build/./lib --env LLVM_INCLUDE_DIR=/home/worker/2.0.1/lldb-x86_64-debian/build/include --env LLVM_TOOLS_DIR=/home/worker/2.0.1/lldb-x86_64-debian/build/./bin --arch x86_64 --build-dir /home/worker/2.0.1/lldb-x86_64-debian/build/lldb-test-build.noindex --lldb-module-cache-dir /home/worker/2.0.1/lldb-x86_64-debian/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/worker/2.0.1/lldb-x86_64-debian/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/worker/2.0.1/lldb-x86_64-debian/build/./bin/lldb --compiler /home/worker/2.0.1/lldb-x86_64-debian/build/./bin/clang --dsymutil /home/worker/2.0.1/lldb-x86_64-debian/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/worker/2.0.1/lldb-x86_64-debian/build/./bin --lldb-obj-root /home/worker/2.0.1/lldb-x86_64-debian/build/tools/lldb --lldb-libs-dir /home/worker/2.0.1/lldb-x86_64-debian/build/./lib -t /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/lldb/test/API/python_api/hello_world -p TestHelloWorld.py
--
Exit Code: -11

Command Output (stdout):
--
lldb version 21.0.0git (https://github.com/llvm/llvm-project.git revision 79487757b7f4b33a0940753fb02e39d0388e733a)
  clang revision 79487757b7f4b33a0940753fb02e39d0388e733a
  llvm revision 79487757b7f4b33a0940753fb02e39d0388e733a
Skipping the following test categories: ['libc++', 'dsym', 'gmodules', 'debugserver', 'objc']

--
Command Output (stderr):
--
Change dir to: /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/lldb/test/API/python_api/hello_world
runCmd: settings clear -all

output: 

runCmd: settings set symbols.enable-external-lookup false

output: 

runCmd: settings set target.inherit-tcc true

output: 

runCmd: settings set target.disable-aslr false

output: 

runCmd: settings set target.detach-on-error false

output: 


Ankur-0429 pushed a commit to Ankur-0429/llvm-project that referenced this pull request Apr 2, 2025
Implement all multi-multi {BF/F/S/U/SU/US}MOP4{A/S} instructions in
clang and llvm following the acle in
https://github.com/ARM-software/acle/pull/381/files
jthackray added a commit to jthackray/llvm-project that referenced this pull request Apr 7, 2025
Fix some of the recently-added tests (PRs llvm#127797, llvm#128854, llvm#129226
and llvm#129230) which were incorrectly defined.
jthackray added a commit that referenced this pull request Apr 8, 2025
Fix some of the recently-added tests (PRs #127797, #128854, #129226 and
#129230) which were incorrectly defined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants