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: fma
15 ; CHECK-NEXT: %res:_(s64) = G_FCONSTANT double 8.100000e+01
16 ; CHECK-NEXT: $d0 = COPY %res(s64)
17 ; CHECK-NEXT: RET_ReallyLR implicit $d0
18 %a:_(s64) = G_FCONSTANT double 40.0
19 %b:_(s64) = G_FCONSTANT double 2.0
20 %c:_(s64) = G_FCONSTANT double 1.0
21 %res:_(s64) = G_FMA %a, %b, %c
23 RET_ReallyLR implicit $d0
35 ; CHECK-LABEL: name: fmad
38 ; CHECK-NEXT: %res:_(s64) = G_FCONSTANT double 8.100000e+01
39 ; CHECK-NEXT: $d0 = COPY %res(s64)
40 ; CHECK-NEXT: RET_ReallyLR implicit $d0
41 %a:_(s64) = G_FCONSTANT double 40.0
42 %b:_(s64) = G_FCONSTANT double 2.0
43 %c:_(s64) = G_FCONSTANT double 1.0
44 %res:_(s64) = G_FMAD %a, %b, %c
46 RET_ReallyLR implicit $d0