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
5 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
7 define void @bswap_s32() { ret void }
8 define void @bswap_s64() { ret void }
17 - { id: 0, class: gpr }
18 - { id: 1, class: gpr }
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]]
39 - { id: 0, class: gpr }
40 - { id: 1, class: gpr }
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]]