llvm.org GIT mirror llvm / release_37 test / CodeGen / ARM / rbit.ll
release_37

Tree @release_37 (Download .tar.gz)

rbit.ll @release_37raw · history · blame

; RUN: llc -mtriple=armv8-eabi %s -o - | FileCheck %s

; CHECK-LABEL: rbit
; CHECK: rbit r0, r0
define i32 @rbit(i32 %t) {
entry:
  %rbit = call i32 @llvm.arm.rbit(i32 %t)
  ret i32 %rbit
}

; CHECK-LABEL: rbit_constant
; CHECK: mov r0, #0
; CHECK: rbit r0, r0
define i32 @rbit_constant() {
entry:
  %rbit.i = call i32 @llvm.arm.rbit(i32 0)
  ret i32 %rbit.i
}

declare i32 @llvm.arm.rbit(i32)