[clang] [AArch64][SME2] Add _x2/_x4 svqrshr builtins. (PR #74100)

Sander de Smalen via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 1 08:41:37 PST 2023


================
@@ -2119,6 +2119,21 @@ let TargetGuard = "sme2" in {
   // 2-way and 4-way selects
   def SVSEL_X2  : SInst<"svsel[_{d}_x2]", "2}22", "cUcsUsiUilUlbhfd", MergeNone, "aarch64_sve_sel_x2", [IsStreaming], []>;
   def SVSEL_X4  : SInst<"svsel[_{d}_x4]", "4}44", "cUcsUsiUilUlbhfd", MergeNone, "aarch64_sve_sel_x4", [IsStreaming], []>;
+
+  def SVQRSHRN_X4   : SInst<"svqrshrn[_{0}_{d}_x4]", "q4i", "il",   MergeNone, "aarch64_sve_sqrshrn_x4", [IsStreaming], [ImmCheck<1, ImmCheckShiftRight, 0>]>;
----------------
sdesmalen-arm wrote:

The builtins proposed here do not match the latest spec, for example this [svqrshrn](https://github.com/ARM-software/acle/blob/main/main/acle.md#sqrshrn-uqrshrn)

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


More information about the cfe-commits mailing list