1; RUN: llc -mtriple=powerpc-unknown-linux-gnu -O0 < %s | FileCheck %s 2 3; Testing operations in soft-float mode 4define double @foo() #0 { 5entry: 6 %a = alloca double, align 8 7 %b = alloca double, align 8 8 %0 = load double, double* %a, align 8 9 %1 = load double, double* %b, align 8 10 %add = fadd double %0, %1 11 ret double %add 12 13 ; CHECK-LABEL: __adddf3 14} 15 16define double @foo1() #0 { 17entry: 18 %a = alloca double, align 8 19 %b = alloca double, align 8 20 %0 = load double, double* %a, align 8 21 %1 = load double, double* %b, align 8 22 %mul = fmul double %0, %1 23 ret double %mul 24 25 ; CHECK-LABEL: __muldf3 26} 27 28define double @foo2() #0 { 29entry: 30 %a = alloca double, align 8 31 %b = alloca double, align 8 32 %0 = load double, double* %a, align 8 33 %1 = load double, double* %b, align 8 34 %sub = fsub double %0, %1 35 ret double %sub 36 37 ; CHECK-LABEL: __subdf3 38} 39 40define double @foo3() #0 { 41entry: 42 %a = alloca double, align 8 43 %b = alloca double, align 8 44 %0 = load double, double* %a, align 8 45 %1 = load double, double* %b, align 8 46 %div = fdiv double %0, %1 47 ret double %div 48 49 ; CHECK-LABEL: __divdf3 50} 51 52attributes #0 = {"use-soft-float"="true" } 53