1 ; RUN: llc -mtriple=aarch64 %s -o - | FileCheck %s
3 ; @llvm.aarch64.cls must be directly translated into the 'cls' instruction
6 ; CHECK: cls [[REG:w[0-9]+]], [[REG]]
7 define i32 @cls(i32 %t) {
8 %cls.i = call i32 @llvm.aarch64.cls(i32 %t)
13 ; CHECK: cls [[REG:x[0-9]+]], [[REG]]
14 define i32 @cls64(i64 %t) {
15 %cls.i = call i32 @llvm.aarch64.cls64(i64 %t)
19 declare i32 @llvm.aarch64.cls(i32) nounwind
20 declare i32 @llvm.aarch64.cls64(i64) nounwind