summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/AArch64/rbit.ll
blob: 3404ae4b6beef211df4554f0fba0d75116dd506b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llc -mtriple=aarch64-eabi %s -o - | FileCheck %s

; CHECK-LABEL: rbit32
; CHECK: rbit w0, w0
define i32 @rbit32(i32 %t) {
entry:
  %rbit.i = call i32 @llvm.aarch64.rbit.i32(i32 %t)
  ret i32 %rbit.i
}

; CHECK-LABEL: rbit64
; CHECK: rbit x0, x0
define i64 @rbit64(i64 %t) {
entry:
  %rbit.i = call i64 @llvm.aarch64.rbit.i64(i64 %t)
  ret i64 %rbit.i
}

declare i64 @llvm.aarch64.rbit.i64(i64)
declare i32 @llvm.aarch64.rbit.i32(i32)