[clang] [CIR][AArch64] Implement vqshrun_n NEON builtin (PR #195080)

Jiahao Guo via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 30 07:17:08 PDT 2026


================
@@ -0,0 +1,40 @@
+// REQUIRES: aarch64-registered-target || arm-registered-target
+
+// RUN:                   %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon -disable-O0-optnone -flax-vector-conversions=none           -emit-llvm -o - %s | opt -S -passes=mem2reg,sroa,simplifycfg | FileCheck %s --check-prefixes=LLVM
+// RUN: %if cir-enabled %{%clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon -disable-O0-optnone -flax-vector-conversions=none -fclangir -emit-llvm -o - %s | opt -S -passes=mem2reg,sroa,simplifycfg | FileCheck %s --check-prefixes=LLVM %}
+// RUN: %if cir-enabled %{%clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon -disable-O0-optnone -flax-vector-conversions=none -fclangir -emit-cir  -o - %s |                               FileCheck %s --check-prefixes=CIR %}
+
+#include <arm_neon.h>
+
----------------
E00N777 wrote:

nit: Could you add some comments here? Something like: https://github.com/llvm/llvm-project/pull/190961/changes#diff-55db208c3f7a65f21da1371c177bfff4ccabdf6bea8f11f8e59f97f2fd2c1d29R3022

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


More information about the cfe-commits mailing list