https://github.com/wenju-he created https://github.com/llvm/llvm-project/pull/201808
Entry block label could be missing. Add -fno-discard-value-names to make sure it exists. Resolves #201773 >From 653b0a3dec1e98b65892f912e9371b8a5a194dcb Mon Sep 17 00:00:00 2001 From: Wenju He <[email protected]> Date: Fri, 5 Jun 2026 12:44:18 +0200 Subject: [PATCH] [libclc][Test] Add -fno-discard-value-names to RUN line Entry block label could be missing. Add -fno-discard-value-names to make sure it exists. --- libclc/test/conversion/convert.cl | 2 +- libclc/test/geometric/cross.cl | 2 +- libclc/test/integer/add_sat.cl | 2 +- libclc/test/integer/sub_sat.cl | 2 +- libclc/test/math/cos.cl | 2 +- libclc/test/math/fabs.cl | 2 +- libclc/test/math/rsqrt.cl | 2 +- libclc/test/misc/as_type.cl | 2 +- libclc/test/work-item/get_group_id.cl | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libclc/test/conversion/convert.cl b/libclc/test/conversion/convert.cl index 0c0a1a3c88561..146f5edd290a5 100644 --- a/libclc/test/conversion/convert.cl +++ b/libclc/test/conversion/convert.cl @@ -1,7 +1,7 @@ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 // REQUIRES: amdgpu-registered-target -// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix +// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -fno-discard-value-names -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix // AMDGCN-LABEL: define hidden <4 x i32> @float4_to_int4( // AMDGCN-SAME: <4 x float> noundef [[X:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { diff --git a/libclc/test/geometric/cross.cl b/libclc/test/geometric/cross.cl index cbf4f28c35b8e..37b1550f835dc 100644 --- a/libclc/test/geometric/cross.cl +++ b/libclc/test/geometric/cross.cl @@ -1,7 +1,7 @@ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 // REQUIRES: amdgpu-registered-target -// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix +// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -fno-discard-value-names -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix // AMDGCN-LABEL: define hidden <4 x float> @test_float4( // AMDGCN-SAME: <4 x float> noundef [[X:%.*]], <4 x float> noundef [[Y:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { diff --git a/libclc/test/integer/add_sat.cl b/libclc/test/integer/add_sat.cl index acfadcb2a201b..cf7043cdde135 100644 --- a/libclc/test/integer/add_sat.cl +++ b/libclc/test/integer/add_sat.cl @@ -1,7 +1,7 @@ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 // REQUIRES: amdgpu-registered-target -// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix +// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -fno-discard-value-names -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix // AMDGCN-LABEL: define hidden noundef signext i8 @test_char( // AMDGCN-SAME: i8 noundef signext [[X:%.*]], i8 noundef signext [[Y:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { diff --git a/libclc/test/integer/sub_sat.cl b/libclc/test/integer/sub_sat.cl index 13fcd35ebb557..872de025eca18 100644 --- a/libclc/test/integer/sub_sat.cl +++ b/libclc/test/integer/sub_sat.cl @@ -1,7 +1,7 @@ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 // REQUIRES: amdgpu-registered-target -// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix +// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -fno-discard-value-names -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix // AMDGCN-LABEL: define hidden noundef signext i8 @test_char( // AMDGCN-SAME: i8 noundef signext [[X:%.*]], i8 noundef signext [[Y:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { diff --git a/libclc/test/math/cos.cl b/libclc/test/math/cos.cl index b6683c90d4c2e..cbb4e145d492b 100644 --- a/libclc/test/math/cos.cl +++ b/libclc/test/math/cos.cl @@ -1,7 +1,7 @@ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 // REQUIRES: amdgpu-registered-target -// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix +// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -fno-discard-value-names -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix // AMDGCN-LABEL: define hidden float @test_float( // AMDGCN-SAME: float noundef [[X:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { diff --git a/libclc/test/math/fabs.cl b/libclc/test/math/fabs.cl index d44750e58ed01..f365584e9f212 100644 --- a/libclc/test/math/fabs.cl +++ b/libclc/test/math/fabs.cl @@ -1,7 +1,7 @@ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 // REQUIRES: amdgpu-registered-target -// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix +// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -fno-discard-value-names -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix // AMDGCN-LABEL: define hidden noundef float @test_float( // AMDGCN-SAME: float noundef [[X:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { diff --git a/libclc/test/math/rsqrt.cl b/libclc/test/math/rsqrt.cl index c9975047e0a0e..9bea00d4de076 100644 --- a/libclc/test/math/rsqrt.cl +++ b/libclc/test/math/rsqrt.cl @@ -1,7 +1,7 @@ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 // REQUIRES: amdgpu-registered-target -// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -x cl -cl-std=CL3.0 -O2 -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix +// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -x cl -cl-std=CL3.0 -O2 -fno-discard-value-names -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix #pragma OPENCL EXTENSION cl_khr_fp16 : enable diff --git a/libclc/test/misc/as_type.cl b/libclc/test/misc/as_type.cl index 5f98df07d2a67..4e03ede3764f3 100644 --- a/libclc/test/misc/as_type.cl +++ b/libclc/test/misc/as_type.cl @@ -1,7 +1,7 @@ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 // REQUIRES: amdgpu-registered-target -// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix +// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -fno-discard-value-names -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix // AMDGCN-LABEL: define hidden noundef <4 x i32> @test_float4_as_int4( // AMDGCN-SAME: <4 x float> noundef [[X:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { diff --git a/libclc/test/work-item/get_group_id.cl b/libclc/test/work-item/get_group_id.cl index 6afaa3a4a3368..90ea18124d43e 100644 --- a/libclc/test/work-item/get_group_id.cl +++ b/libclc/test/work-item/get_group_id.cl @@ -1,7 +1,7 @@ // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 6 // REQUIRES: amdgpu-registered-target -// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix +// RUN: %clang --target=%target -mcpu=%cpu %libclc_lib -cl-std=CL3.0 -O2 -fno-discard-value-names -emit-llvm -S -o - %s | FileCheck %s --check-prefix=%check_prefix // AMDGCN-LABEL: define hidden range(i64 0, 4294967296) i64 @test( // AMDGCN-SAME: ) local_unnamed_addr #[[ATTR0:[0-9]+]] { _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
