https://github.com/nikic created 
https://github.com/llvm/llvm-project/pull/242803

This reverts commit 351abdb04162065e75b007840aaf20ec7ac99a2b.

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

>From 1fb3e9ec9dcc58e5e46ce470eb7b1ff1e8c8e4e4 Mon Sep 17 00:00:00 2001
From: Nikita Popov <[email protected]>
Date: Sun, 15 Nov 2026 12:09:28 +0100
Subject: [PATCH] Revert "[Hexagon] Test lowering of Clang HLX vector pair
 locals at -O0 (#242403)"

This reverts commit 351abdb04162065e75b007840aaf20ec7ac99a2b.
---
 .../CodeGen/hexagon-hlx-vector-pair-copy.c    | 34 -------------------
 .../CodeGen/hexagon-hlx-vector-pair-half.c    | 27 ---------------
 2 files changed, 61 deletions(-)
 delete mode 100644 clang/test/CodeGen/hexagon-hlx-vector-pair-copy.c
 delete mode 100644 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

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to