1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=arm64-unknown-unknown -global-isel -run-pass=instruction-select -global-isel-abort=1 %s -o - | FileCheck %s
3 # RUN: llc -O0 -mtriple=arm64-unknown-unknown -global-isel -mattr=+cssc -run-pass=instruction-select -global-isel-abort=1 %s -o - | FileCheck %s --check-prefix=CHECK-CSSC
10 tracksRegLiveness: true
14 ; CHECK-LABEL: name: s32
17 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr32 = COPY $w0
18 ; CHECK-NEXT: [[RBITWr:%[0-9]+]]:gpr32 = RBITWr [[COPY]]
19 ; CHECK-NEXT: [[CLZWr:%[0-9]+]]:gpr32 = CLZWr [[RBITWr]]
20 ; CHECK-NEXT: $w0 = COPY [[CLZWr]]
21 ; CHECK-NEXT: RET_ReallyLR implicit $w0
22 ; CHECK-CSSC-LABEL: name: s32
23 ; CHECK-CSSC: liveins: $w0
24 ; CHECK-CSSC-NEXT: {{ $}}
25 ; CHECK-CSSC-NEXT: [[COPY:%[0-9]+]]:gpr32 = COPY $w0
26 ; CHECK-CSSC-NEXT: [[CTZWr:%[0-9]+]]:gpr32 = CTZWr [[COPY]]
27 ; CHECK-CSSC-NEXT: $w0 = COPY [[CTZWr]]
28 ; CHECK-CSSC-NEXT: RET_ReallyLR implicit $w0
29 %0:gpr(s32) = COPY $w0
30 %1:gpr(s32) = G_CTTZ %0(s32)
32 RET_ReallyLR implicit $w0
40 tracksRegLiveness: true
44 ; CHECK-LABEL: name: s64
47 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr64 = COPY $x0
48 ; CHECK-NEXT: [[RBITXr:%[0-9]+]]:gpr64 = RBITXr [[COPY]]
49 ; CHECK-NEXT: [[CLZXr:%[0-9]+]]:gpr64 = CLZXr [[RBITXr]]
50 ; CHECK-NEXT: $x0 = COPY [[CLZXr]]
51 ; CHECK-NEXT: RET_ReallyLR implicit $x0
52 ; CHECK-CSSC-LABEL: name: s64
53 ; CHECK-CSSC: liveins: $x0
54 ; CHECK-CSSC-NEXT: {{ $}}
55 ; CHECK-CSSC-NEXT: [[COPY:%[0-9]+]]:gpr64 = COPY $x0
56 ; CHECK-CSSC-NEXT: [[CTZXr:%[0-9]+]]:gpr64 = CTZXr [[COPY]]
57 ; CHECK-CSSC-NEXT: $x0 = COPY [[CTZXr]]
58 ; CHECK-CSSC-NEXT: RET_ReallyLR implicit $x0
59 %0:gpr(s64) = COPY $x0
60 %1:gpr(s64) = G_CTTZ %0(s64)
62 RET_ReallyLR implicit $x0