1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -verify-machineinstrs -mtriple aarch64-unknown-unknown -run-pass=legalizer %s -o - | FileCheck %s
6 tracksRegLiveness: true
13 ; CHECK-LABEL: name: testmsws
15 ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $s0
16 ; CHECK: [[INTRINSIC_LRINT:%[0-9]+]]:_(s64) = G_INTRINSIC_LRINT [[COPY]](s32)
17 ; CHECK: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[INTRINSIC_LRINT]](s64)
18 ; CHECK: $w0 = COPY [[TRUNC]](s32)
19 ; CHECK: RET_ReallyLR implicit $w0
21 %1:_(s64) = G_INTRINSIC_LRINT %0(s32)
22 %2:_(s32) = G_TRUNC %1(s64)
24 RET_ReallyLR implicit $w0
30 tracksRegLiveness: true
37 ; CHECK-LABEL: name: testmsxs
39 ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $s0
40 ; CHECK: [[INTRINSIC_LRINT:%[0-9]+]]:_(s64) = G_INTRINSIC_LRINT [[COPY]](s32)
41 ; CHECK: $x0 = COPY [[INTRINSIC_LRINT]](s64)
42 ; CHECK: RET_ReallyLR implicit $x0
44 %1:_(s64) = G_INTRINSIC_LRINT %0(s32)
46 RET_ReallyLR implicit $x0
52 tracksRegLiveness: true
59 ; CHECK-LABEL: name: testmswd
61 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $d0
62 ; CHECK: [[INTRINSIC_LRINT:%[0-9]+]]:_(s64) = G_INTRINSIC_LRINT [[COPY]](s64)
63 ; CHECK: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[INTRINSIC_LRINT]](s64)
64 ; CHECK: $w0 = COPY [[TRUNC]](s32)
65 ; CHECK: RET_ReallyLR implicit $w0
67 %1:_(s64) = G_INTRINSIC_LRINT %0(s64)
68 %2:_(s32) = G_TRUNC %1(s64)
70 RET_ReallyLR implicit $w0
76 tracksRegLiveness: true
83 ; CHECK-LABEL: name: testmsxd
85 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $d0
86 ; CHECK: [[INTRINSIC_LRINT:%[0-9]+]]:_(s64) = G_INTRINSIC_LRINT [[COPY]](s64)
87 ; CHECK: $x0 = COPY [[INTRINSIC_LRINT]](s64)
88 ; CHECK: RET_ReallyLR implicit $x0
90 %1:_(s64) = G_INTRINSIC_LRINT %0(s64)
92 RET_ReallyLR implicit $x0