[AArch64] cls.ll - regenerate test checks (#175948)

Noticed when reviewing #174824
This commit is contained in:
Simon Pilgrim 2026-01-14 14:18:34 +00:00 committed by GitHub
parent 676fc58744
commit d363c7f95b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,17 +1,23 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
; RUN: llc -mtriple=aarch64 %s -o - | FileCheck %s
; @llvm.aarch64.cls must be directly translated into the 'cls' instruction
; CHECK-LABEL: cls
; CHECK: cls [[REG:w[0-9]+]], [[REG]]
define i32 @cls(i32 %t) {
; CHECK-LABEL: cls:
; CHECK: // %bb.0:
; CHECK-NEXT: cls w0, w0
; CHECK-NEXT: ret
%cls.i = call i32 @llvm.aarch64.cls(i32 %t)
ret i32 %cls.i
}
; CHECK-LABEL: cls64
; CHECK: cls [[REG:x[0-9]+]], [[REG]]
define i32 @cls64(i64 %t) {
; CHECK-LABEL: cls64:
; CHECK: // %bb.0:
; CHECK-NEXT: cls x0, x0
; CHECK-NEXT: // kill: def $w0 killed $w0 killed $x0
; CHECK-NEXT: ret
%cls.i = call i32 @llvm.aarch64.cls64(i64 %t)
ret i32 %cls.i
}