brintos

brintos / llvm-project-archived public Read only

0
0
Text · 760 B · ab35a97 Raw
36 lines · plain
1; RUN: llc -mtriple=arm-eabi -mattr=+vfp2 %s -o - | FileCheck %s -check-prefix=VFP22; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - | FileCheck %s -check-prefix=NEON3; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 %s -o - | FileCheck %s -check-prefix=A84 5define float @t1(float %acc, float %a, float %b) {6entry:7; VFP2-LABEL: t1:8; VFP2: vmls.f329 10; NEON-LABEL: t1:11; NEON: vmls.f3212 13; A8-LABEL: t1:14; A8: vmul.f3215; A8: vsub.f3216	%0 = fmul float %a, %b17        %1 = fsub float %acc, %018	ret float %119}20 21define double @t2(double %acc, double %a, double %b) {22entry:23; VFP2-LABEL: t2:24; VFP2: vmls.f6425 26; NEON-LABEL: t2:27; NEON: vmls.f6428 29; A8-LABEL: t2:30; A8: vmul.f6431; A8: vsub.f6432	%0 = fmul double %a, %b33        %1 = fsub double %acc, %034	ret double %135}36