1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple aarch64 -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
9 tracksRegLiveness: true
14 ; CHECK-LABEL: name: s32
16 ; CHECK: %copy:gpr32 = COPY $w0
17 ; CHECK: %bitreverse:gpr32 = RBITWr %copy
18 ; CHECK: $w0 = COPY %bitreverse
19 ; CHECK: RET_ReallyLR implicit $w0
20 %copy:gpr(s32) = COPY $w0
21 %bitreverse:gpr(s32) = G_BITREVERSE %copy
22 $w0 = COPY %bitreverse(s32)
23 RET_ReallyLR implicit $w0
30 tracksRegLiveness: true
35 ; CHECK-LABEL: name: s64
37 ; CHECK: %copy:gpr64 = COPY $x0
38 ; CHECK: %bitreverse:gpr64 = RBITXr %copy
39 ; CHECK: $x0 = COPY %bitreverse
40 ; CHECK: RET_ReallyLR implicit $x0
41 %copy:gpr(s64) = COPY $x0
42 %bitreverse:gpr(s64) = G_BITREVERSE %copy
43 $x0 = COPY %bitreverse(s64)
44 RET_ReallyLR implicit $x0
51 tracksRegLiveness: true
56 ; CHECK-LABEL: name: v8s8_legal
58 ; CHECK: %vec:fpr64 = IMPLICIT_DEF
59 ; CHECK: %bitreverse:fpr64 = RBITv8i8 %vec
60 ; CHECK: $x0 = COPY %bitreverse
61 ; CHECK: RET_ReallyLR implicit $x0
62 %vec:fpr(<8 x s8>) = G_IMPLICIT_DEF
63 %bitreverse:fpr(<8 x s8>) = G_BITREVERSE %vec
64 $x0 = COPY %bitreverse(<8 x s8>)
65 RET_ReallyLR implicit $x0
72 tracksRegLiveness: true
77 ; CHECK-LABEL: name: v16s8_legal
79 ; CHECK: %vec:fpr128 = IMPLICIT_DEF
80 ; CHECK: %bitreverse:fpr128 = RBITv16i8 %vec
81 ; CHECK: $q0 = COPY %bitreverse
82 ; CHECK: RET_ReallyLR implicit $q0
83 %vec:fpr(<16 x s8>) = G_IMPLICIT_DEF
84 %bitreverse:fpr(<16 x s8>) = G_BITREVERSE %vec
85 $q0 = COPY %bitreverse(<16 x s8>)
86 RET_ReallyLR implicit $q0