1 ; RUN: llc -mtriple=aarch64-eabi %s -o - | FileCheck %s 2 3 ; CHECK-LABEL: rbit32 4 ; CHECK: rbit w0, w0 5 define i32 @rbit32(i32 %t) { 6 entry: 7 %rbit.i = call i32 @llvm.aarch64.rbit.i32(i32 %t) 8 ret i32 %rbit.i 9 } 10 11 ; CHECK-LABEL: rbit64 12 ; CHECK: rbit x0, x0 13 define i64 @rbit64(i64 %t) { 14 entry: 15 %rbit.i = call i64 @llvm.aarch64.rbit.i64(i64 %t) 16 ret i64 %rbit.i 17 } 18 19 declare i64 @llvm.aarch64.rbit.i64(i64) 20 declare i32 @llvm.aarch64.rbit.i32(i32) 21