[clang] [clang] Add typed variants for C2y stdbit.h rotate builtins (PR #195299)

via cfe-commits cfe-commits at lists.llvm.org
Fri May 1 10:44:06 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 53768 tests passed
* 1172 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.CodeGen/builtin-rotate.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -ffreestanding C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c -emit-llvm -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -ffreestanding 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c' -emit-llvm -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -ffreestanding C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c -emit-llvm -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c --check-prefix=INT128
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -ffreestanding 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c' -emit-llvm -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c' --check-prefix=INT128
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -std=c2y -isystem C:\_work\llvm-project\llvm-project\clang\test\CodeGen/Inputs -DTEST_C2Y_LIB_SPELLINGS C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c -emit-llvm -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c --check-prefix=C2Y
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -std=c2y -isystem 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen/Inputs' -DTEST_C2Y_LIB_SPELLINGS 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c' -emit-llvm -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c' --check-prefix=C2Y
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c:324:15: error: C2Y-LABEL: expected string not found in input
# | // C2Y-LABEL: define dso_local zeroext i8 @test_typed_rotate_left_uc(
# |               ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c'
# | ^
# | <stdin>:7:1: note: possible intended match here
# | define dso_local i8 @test_typed_rotate_left_uc(i8 noundef %x, i32 noundef %cnt) #0 {
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              1: ; ModuleID = 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtin-rotate.c' 
# | label:324'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |              2: source_filename = "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\CodeGen\\builtin-rotate.c" 
# | label:324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              3: target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128" 
# | label:324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              4: target triple = "x86_64-pc-windows-msvc" 
# | label:324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              5:  
# | label:324'0     ~
# |              6: ; Function Attrs: noinline nounwind optnone 
# | label:324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              7: define dso_local i8 @test_typed_rotate_left_uc(i8 noundef %x, i32 noundef %cnt) #0 { 
# | label:324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | label:324'1     ?                                                                                     possible intended match
# |              8: entry: 
# | label:324'0     ~~~~~~~
# |              9:  %cnt.addr = alloca i32, align 4 
# | label:324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             10:  %x.addr = alloca i8, align 1 
# | label:324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             11:  store i32 %cnt, ptr %cnt.addr, align 4 
# | label:324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             12:  store i8 %x, ptr %x.addr, align 1 
# | label:324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list