[llvm] Vector masked extract last active element intrinsic (PR #113587)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 05:42:40 PST 2024


================
@@ -0,0 +1,663 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
+; RUN: llc -mtriple=aarch64 -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK,NEON-FIXED
+; RUN: llc -mtriple=aarch64 -mattr=+sve -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK,SVE-FIXED
+
+define i8 @extract_last_i8(<16 x i8> %data, <16 x i1> %mask, i8 %passthru) {
----------------
paulwalker-arm wrote:

To simplify the tests, and more accurately reflect how they will be used can you instead generate the mask in the function?  I'm thinking something trivial like changing `%mask` to have the same type as `%data` and then just comparing that to zero.

https://github.com/llvm/llvm-project/pull/113587


More information about the llvm-commits mailing list