1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64 -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s
7 tracksRegLiveness: true
11 ; CHECK-LABEL: name: s64_s32_legal
13 ; CHECK: %copy:_(s32) = COPY $s0
14 ; CHECK: %lround:_(s64) = G_LROUND %copy(s32)
15 ; CHECK: %trunc:_(s32) = G_TRUNC %lround(s64)
16 ; CHECK: $w0 = COPY %trunc(s32)
17 ; CHECK: RET_ReallyLR implicit $w0
18 %copy:_(s32) = COPY $s0
19 %lround:_(s64) = G_LROUND %copy(s32)
20 %trunc:_(s32) = G_TRUNC %lround
21 $w0 = COPY %trunc(s32)
22 RET_ReallyLR implicit $w0
26 tracksRegLiveness: true
30 ; CHECK-LABEL: name: s64_s64_legal
32 ; CHECK: %copy:_(s64) = COPY $d0
33 ; CHECK: %lround:_(s64) = G_LROUND %copy(s64)
34 ; CHECK: $x0 = COPY %lround(s64)
35 ; CHECK: RET_ReallyLR implicit $x0
36 %copy:_(s64) = COPY $d0
37 %lround:_(s64) = G_LROUND %copy(s64)
39 RET_ReallyLR implicit $x0