49 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple aarch64 -run-pass=aarch64-prelegalizer-combiner -verify-machineinstrs %s -o - | FileCheck %s3 4---5name: fma6liveins:7 - { reg: '$d0' }8body: |9 bb.1.entry:10 liveins: $d011 12 ; CHECK-LABEL: name: fma13 ; CHECK: liveins: $d014 ; CHECK-NEXT: {{ $}}15 ; CHECK-NEXT: %res:_(s64) = G_FCONSTANT double 8.100000e+0116 ; CHECK-NEXT: $d0 = COPY %res(s64)17 ; CHECK-NEXT: RET_ReallyLR implicit $d018 %a:_(s64) = G_FCONSTANT double 40.019 %b:_(s64) = G_FCONSTANT double 2.020 %c:_(s64) = G_FCONSTANT double 1.021 %res:_(s64) = G_FMA %a, %b, %c22 $d0 = COPY %res(s64)23 RET_ReallyLR implicit $d024 25...26 27---28name: fmad29liveins:30 - { reg: '$d0' }31body: |32 bb.1.entry:33 liveins: $d034 35 ; CHECK-LABEL: name: fmad36 ; CHECK: liveins: $d037 ; CHECK-NEXT: {{ $}}38 ; CHECK-NEXT: %res:_(s64) = G_FCONSTANT double 8.100000e+0139 ; CHECK-NEXT: $d0 = COPY %res(s64)40 ; CHECK-NEXT: RET_ReallyLR implicit $d041 %a:_(s64) = G_FCONSTANT double 40.042 %b:_(s64) = G_FCONSTANT double 2.043 %c:_(s64) = G_FCONSTANT double 1.044 %res:_(s64) = G_FMAD %a, %b, %c45 $d0 = COPY %res(s64)46 RET_ReallyLR implicit $d047 48...49