1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple aarch64 -run-pass=aarch64-prelegalizer-combiner -verify-machineinstrs %s -o - | FileCheck %s
12 ; CHECK-LABEL: name: sitofp
15 ; CHECK-NEXT: %res:_(s64) = G_FCONSTANT double 0.000000e+00
16 ; CHECK-NEXT: $d0 = COPY %res(s64)
17 ; CHECK-NEXT: RET_ReallyLR implicit $d0
18 %a:_(s64) = G_CONSTANT i64 0
19 %res:_(s64) = G_SITOFP %a
21 RET_ReallyLR implicit $d0
32 ; CHECK-LABEL: name: uitofp
35 ; CHECK-NEXT: %res:_(s64) = G_FCONSTANT double 0.000000e+00
36 ; CHECK-NEXT: $d0 = COPY %res(s64)
37 ; CHECK-NEXT: RET_ReallyLR implicit $d0
38 %a:_(s64) = G_CONSTANT i64 0
39 %res:_(s64) = G_UITOFP %a
41 RET_ReallyLR implicit $d0