brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 371255a Raw
35 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2; RUN: llc -o - -verify-machineinstrs -global-isel -stop-after=irtranslator -fp-contract=fast %s | FileCheck %s --check-prefix=FPFAST3; RUN: llc -o - -verify-machineinstrs -global-isel -stop-after=irtranslator -fp-contract=off %s | FileCheck %s --check-prefix=FPOFF4target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"5target triple = "aarch64--"6 7define float @test_fmuladd(float %x, float %y, float %z) {8  ; FPFAST-LABEL: name: test_fmuladd9  ; FPFAST: bb.1 (%ir-block.0):10  ; FPFAST:   liveins: $s0, $s1, $s211  ; FPFAST:   [[COPY:%[0-9]+]]:_(s32) = COPY $s012  ; FPFAST:   [[COPY1:%[0-9]+]]:_(s32) = COPY $s113  ; FPFAST:   [[COPY2:%[0-9]+]]:_(s32) = COPY $s214  ; FPFAST:   [[FMA:%[0-9]+]]:_(s32) = G_FMA [[COPY]], [[COPY1]], [[COPY2]]15  ; FPFAST:   $s0 = COPY [[FMA]](s32)16  ; FPFAST:   RET_ReallyLR implicit $s017  ; FPOFF-LABEL: name: test_fmuladd18  ; FPOFF: bb.1 (%ir-block.0):19  ; FPOFF:   liveins: $s0, $s1, $s220  ; FPOFF:   [[COPY:%[0-9]+]]:_(s32) = COPY $s021  ; FPOFF:   [[COPY1:%[0-9]+]]:_(s32) = COPY $s122  ; FPOFF:   [[COPY2:%[0-9]+]]:_(s32) = COPY $s223  ; FPOFF:   [[FMUL:%[0-9]+]]:_(s32) = G_FMUL [[COPY]], [[COPY1]]24  ; FPOFF:   [[FADD:%[0-9]+]]:_(s32) = G_FADD [[FMUL]], [[COPY2]]25  ; FPOFF:   $s0 = COPY [[FADD]](s32)26  ; FPOFF:   RET_ReallyLR implicit $s027  %res = call float @llvm.fmuladd.f32(float %x, float %y, float %z)28  ret float %res29}30 31; Function Attrs: nounwind readnone speculatable32declare float @llvm.fmuladd.f32(float, float, float) #033 34attributes #0 = { nounwind readnone speculatable }35