[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / CodeGen / AArch64 / GlobalISel / regbank-trunc-s128.mir
blob1492808e741f6d0b35240b8cf36717e3e611f0ce
1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64-unknown-unknown -verify-machineinstrs -O0 -run-pass=regbankselect %s -o - | FileCheck %s
3 ---
4 name:            trunc_s64_s128
5 alignment:       4
6 legalized:       true
7 tracksRegLiveness: true
8 body:             |
9   bb.1:
10     liveins: $q0
12     ; CHECK-LABEL: name: trunc_s64_s128
13     ; CHECK: liveins: $q0
14     ; CHECK: [[COPY:%[0-9]+]]:fpr(s128) = COPY $q0
15     ; CHECK: [[TRUNC:%[0-9]+]]:fpr(s64) = G_TRUNC [[COPY]](s128)
16     ; CHECK: $d2 = COPY [[TRUNC]](s64)
17     ; CHECK: RET_ReallyLR implicit $d2
18     %0:_(s128) = COPY $q0
19     %1:_(s64) = G_TRUNC %0(s128)
20     $d2 = COPY %1(s64)
21     RET_ReallyLR implicit $d2
23 ...