brintos

brintos / llvm-project-archived public Read only

0
0
Text · 522 B · f17ccf7 Raw
21 lines · plain
1; RUN: llc -mtriple=aarch64 %s -o - | FileCheck %s2 3; @llvm.aarch64.cls must be directly translated into the 'cls' instruction4 5; CHECK-LABEL: cls6; CHECK: cls [[REG:w[0-9]+]], [[REG]]7define i32 @cls(i32 %t) {8  %cls.i = call i32 @llvm.aarch64.cls(i32 %t)9  ret i32 %cls.i10}11 12; CHECK-LABEL: cls6413; CHECK: cls [[REG:x[0-9]+]], [[REG]]14define i32 @cls64(i64 %t) {15  %cls.i = call i32 @llvm.aarch64.cls64(i64 %t)16  ret i32 %cls.i17}18 19declare i32 @llvm.aarch64.cls(i32) nounwind20declare i32 @llvm.aarch64.cls64(i64) nounwind21