https://github.com/chaitanyav created https://github.com/llvm/llvm-project/pull/177732
- Run the INT128 prefix checks on 64-bit targets since __int128 is not supported on ARM32 Fixes https://lab.llvm.org/buildbot/#/builders/154/builds/26813 >From cebc0db67afdf32bb2ccc3c4d213b5dd3097fa65 Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki <[email protected]> Date: Fri, 23 Jan 2026 19:54:19 -0800 Subject: [PATCH] [clang][test] Fix builtin-rotate.c test __int128 test failure on ARM32 - Run the INT128 prefix checks on 64-bit targets since __int128 is not supported on ARM32 Fixes https://lab.llvm.org/buildbot/#/builders/154/builds/26813 --- clang/test/CodeGen/builtin-rotate.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/clang/test/CodeGen/builtin-rotate.c b/clang/test/CodeGen/builtin-rotate.c index c64e2ad14955c..6e2d3f3dd31b6 100644 --- a/clang/test/CodeGen/builtin-rotate.c +++ b/clang/test/CodeGen/builtin-rotate.c @@ -1,4 +1,5 @@ // RUN: %clang_cc1 -ffreestanding %s -emit-llvm -o - | FileCheck %s +// RUN: %if clang-target-64-bits %{ %clang_cc1 -ffreestanding %s -emit-llvm -o - | FileCheck %s --check-prefix=INT128 %} #include<stdint.h> @@ -303,9 +304,9 @@ void test_wider_shift_amount(uint8_t u8, uint16_t u16, uint32_t u32, unsigned _B } #ifdef __SIZEOF_INT128__ -// CHECK-LABEL: test_int128_rotate -// CHECK: call i128 @llvm.fshl.i128(i128 %{{.*}}, i128 %{{.*}}, i128 32) -// CHECK: call i128 @llvm.fshr.i128(i128 %{{.*}}, i128 %{{.*}}, i128 32) +// INT128-LABEL: test_int128_rotate +// INT128: call i128 @llvm.fshl.i128(i128 %{{.*}}, i128 %{{.*}}, i128 32) +// INT128: call i128 @llvm.fshr.i128(i128 %{{.*}}, i128 %{{.*}}, i128 32) void test_int128_rotate(unsigned __int128 u128) { volatile unsigned __int128 result_u128; result_u128 = __builtin_stdc_rotate_left(u128, 32); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
