[clang] e2a8eb6 - Revert "[Hexagon] Test lowering of Clang HLX vector pair locals at -O0 (#242403) (#242803)

via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 15 03:50:40 PST 2026


Author: Nikita Popov
Date: 2026-11-15T11:50:34Z
New Revision: e2a8eb629993047c37fb6046aa4d97d13ddd624e

URL: https://github.com/llvm/llvm-project/commit/e2a8eb629993047c37fb6046aa4d97d13ddd624e
DIFF: https://github.com/llvm/llvm-project/commit/e2a8eb629993047c37fb6046aa4d97d13ddd624e.diff

LOG: Revert "[Hexagon] Test lowering of Clang HLX vector pair locals at -O0 (#242403) (#242803)

This reverts commit 351abdb04162065e75b007840aaf20ec7ac99a2b.

The tests fail in release builds because the values are unnamed.

Added: 
    

Modified: 
    

Removed: 
    clang/test/CodeGen/hexagon-hlx-vector-pair-copy.c
    clang/test/CodeGen/hexagon-hlx-vector-pair-half.c


################################################################################
diff  --git a/clang/test/CodeGen/hexagon-hlx-vector-pair-copy.c b/clang/test/CodeGen/hexagon-hlx-vector-pair-copy.c
deleted file mode 100644
index 2d5e69b4e6f41b..00000000000000
--- a/clang/test/CodeGen/hexagon-hlx-vector-pair-copy.c
+++ /dev/null
@@ -1,34 +0,0 @@
-// REQUIRES: hexagon-registered-target
-// The -emit-llvm run checks that ordinary pair memory operations are emitted,
-// the -stop-after run checks their lowering, and the last run checks that the
-// full backend accepts them.
-// RUN: %clang --target=hexagon -mv85 -mhlx -O0 -S %s -o - -mllvm -stop-after=hexagon-lower-hlx-pair-allocas | FileCheck %s --check-prefix=LOWER
-// RUN: %clang --target=hexagon -mv85 -mhlx -O0 -S -emit-llvm %s -o - | FileCheck %s --check-prefix=IR
-// RUN: %clang --target=hexagon -mv85 -mhlx -O0 -S %s -o /dev/null
-
-#include <hexagon_types.h>
-#include <hlx_hexagon_protos.h>
-
-HLX_VectorPair copy_hlx_vector_pair(HLX_VectorPair input) {
-  HLX_VectorPair copy = input;
-  return copy;
-}
-
-// IR-LABEL: define{{.*}} <1024 x i32> @copy_hlx_vector_pair
-// IR: %input.addr = alloca <1024 x i32>, align 2048
-// IR: %copy = alloca <1024 x i32>, align 2048
-// IR: store <1024 x i32> %input, ptr %input.addr, align 2048
-// IR: %[[INPUT:.*]] = load <1024 x i32>, ptr %input.addr, align 2048
-// IR: store <1024 x i32> %[[INPUT]], ptr %copy, align 2048
-// IR: %[[COPY:.*]] = load <1024 x i32>, ptr %copy, align 2048
-// IR: ret <1024 x i32> %[[COPY]]
-// IR-NOT: @llvm.hexagon.LX.
-
-// LOWER-LABEL: define{{.*}} <1024 x i32> @copy_hlx_vector_pair
-// LOWER-NOT: load <1024 x i32>
-// LOWER-NOT: store <1024 x i32>
-// LOWER: call void @llvm.hexagon.LX.SS16b.new(ptr %input.addr, <1024 x i32> %input)
-// LOWER: %[[INPUT:.*]] = call <1024 x i32> @llvm.hexagon.LX.LL16b.tmp(ptr %input.addr)
-// LOWER: call void @llvm.hexagon.LX.SS16b.new(ptr %copy, <1024 x i32> %[[INPUT]])
-// LOWER: %[[COPY:.*]] = call <1024 x i32> @llvm.hexagon.LX.LL16b.tmp(ptr %copy)
-// LOWER: ret <1024 x i32> %[[COPY]]

diff  --git a/clang/test/CodeGen/hexagon-hlx-vector-pair-half.c b/clang/test/CodeGen/hexagon-hlx-vector-pair-half.c
deleted file mode 100644
index b9291dd928166a..00000000000000
--- a/clang/test/CodeGen/hexagon-hlx-vector-pair-half.c
+++ /dev/null
@@ -1,27 +0,0 @@
-// REQUIRES: hexagon-registered-target
-// RUN: %clang --target=hexagon -mv85 -mhlx -O0 -S -emit-llvm %s -o - | FileCheck %s --check-prefix=IR
-// RUN: %clang --target=hexagon -mv85 -mhlx -O0 -S %s -o - -mllvm -stop-after=hexagon-lower-hlx-pair-allocas | FileCheck %s --check-prefix=LOWER
-
-#include <hexagon_types.h>
-#include <hlx_hexagon_protos.h>
-
-HLX_Vector get_half_from_pair(HLX_VectorPair input) {
-  HLX_VectorPair pair = input;
-  HLX_Vector half = *(HLX_Vector *)&pair;
-  return half;
-}
-
-// IR-LABEL: define{{.*}} <1024 x i16> @get_half_from_pair
-// IR: %pair = alloca <1024 x i32>, align 2048
-// IR: store <1024 x i32> %input, ptr %input.addr, align 2048
-// IR: %[[PAIR_VALUE:.*]] = load <1024 x i32>, ptr %input.addr, align 2048
-// IR: store <1024 x i32> %[[PAIR_VALUE]], ptr %pair, align 2048
-// IR: %[[HALF:.*]] = load <1024 x i16>, ptr %pair, align 2048
-// IR-NOT: @llvm.hexagon.LX.
-
-// LOWER-LABEL: define{{.*}} <1024 x i16> @get_half_from_pair
-// LOWER-NOT: load <1024 x i32>
-// LOWER-NOT: store <1024 x i32>
-// LOWER: call <1024 x i32> @llvm.hexagon.LX.LL16b.tmp(ptr %input.addr)
-// LOWER: call void @llvm.hexagon.LX.SS16b.new(ptr %pair, <1024 x i32>
-// LOWER: %{{.*}} = load <1024 x i16>, ptr %pair, align 2048


        


More information about the cfe-commits mailing list