1 ; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu -O0 < %s | FileCheck %s
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -O0 < %s | FileCheck %s
3 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -O0 < %s | FileCheck %s
5 ; Testing operations in soft-float mode
6 define double @foo() #0 {
8 %a = alloca double, align 8
9 %b = alloca double, align 8
10 %0 = load double, double* %a, align 8
11 %1 = load double, double* %b, align 8
12 %add = fadd double %0, %1
15 ; CHECK-LABEL: __adddf3
18 define double @foo1() #0 {
20 %a = alloca double, align 8
21 %b = alloca double, align 8
22 %0 = load double, double* %a, align 8
23 %1 = load double, double* %b, align 8
24 %mul = fmul double %0, %1
27 ; CHECK-LABEL: __muldf3
30 define double @foo2() #0 {
32 %a = alloca double, align 8
33 %b = alloca double, align 8
34 %0 = load double, double* %a, align 8
35 %1 = load double, double* %b, align 8
36 %sub = fsub double %0, %1
39 ; CHECK-LABEL: __subdf3
42 define double @foo3() #0 {
44 %a = alloca double, align 8
45 %b = alloca double, align 8
46 %0 = load double, double* %a, align 8
47 %1 = load double, double* %b, align 8
48 %div = fdiv double %0, %1
51 ; CHECK-LABEL: __divdf3
54 attributes #0 = {"use-soft-float"="true" }