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 3 4--- | 5 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" 6 7 define void @bswap_s32() { ret void } 8 define void @bswap_s64() { ret void } 9... 10 11--- 12name: bswap_s32 13legalized: true 14regBankSelected: true 15 16registers: 17 - { id: 0, class: gpr } 18 - { id: 1, class: gpr } 19 20body: | 21 bb.0: 22 liveins: $w0 23 24 ; CHECK-LABEL: name: bswap_s32 25 ; CHECK: [[COPY:%[0-9]+]]:gpr32 = COPY $w0 26 ; CHECK: [[REVWr:%[0-9]+]]:gpr32 = REVWr [[COPY]] 27 ; CHECK: $w0 = COPY [[REVWr]] 28 %0(s32) = COPY $w0 29 %1(s32) = G_BSWAP %0 30 $w0 = COPY %1 31... 32 33--- 34name: bswap_s64 35legalized: true 36regBankSelected: true 37 38registers: 39 - { id: 0, class: gpr } 40 - { id: 1, class: gpr } 41 42body: | 43 bb.0: 44 liveins: $x0 45 46 ; CHECK-LABEL: name: bswap_s64 47 ; CHECK: [[COPY:%[0-9]+]]:gpr64 = COPY $x0 48 ; CHECK: [[REVXr:%[0-9]+]]:gpr64 = REVXr [[COPY]] 49 ; CHECK: $x0 = COPY [[REVXr]] 50 %0(s64) = COPY $x0 51 %1(s64) = G_BSWAP %0 52 $x0 = COPY %1 53... 54