Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / lib / Target / AArch64 / select-bswap.mir
blob13dfa99e3fa25c71c24ec4c29cea4590ded142a5
1 # RUN: llc -verify-machineinstrs -mtriple aarch64--- \
2 # RUN: -run-pass=instruction-select -mattr=+fullfp16 -global-isel %s -o - \
3 # RUN: | FileCheck %s
4 ...
5 ---
6 name:            bswap_s32
7 legalized:       true
8 regBankSelected: true
9 tracksRegLiveness: true
10 body:             |
11   bb.0:
12     ; CHECK-LABEL: name:            bswap_s32
13     ; CHECK: [[COPY:%[0-9]+]]:gpr32 = COPY $w0
14     ; CHECK: [[REVWr:%[0-9]+]]:gpr32 = REVWr [[COPY]]
15     ; CHECK: $w0 = COPY [[REVWr]]
16     liveins: $s0
17     %0:gpr(s32) = COPY $w0
18     %1:gpr(s32) = G_BSWAP %0
19     $w0 = COPY %1(s32)
21 ...
22 ---
23 name:            bswap_s64
24 legalized:       true
25 regBankSelected: true
26 tracksRegLiveness: true
27 body:             |
28   bb.0:
29     ; CHECK-LABEL: name:            bswap_s64
30     ; CHECK: [[COPY:%[0-9]+]]:gpr64 = COPY $x0
31     ; CHECK: [[REVXr:%[0-9]+]]:gpr64 = REVXr [[COPY]]
32     ; CHECK: $x0 = COPY [[REVXr]]
33     liveins: $x0
34     %0:gpr(s64) = COPY $d0
35     %1:gpr(s64) = G_BSWAP %0
36     $x0 = COPY %1(s64)
38 ...