1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s
3 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-ibm-aix-xcoff -mcpu=pwr8 -vec-extabi | FileCheck %s
5 define dso_local float @foo_nosw(float %0, float %1) local_unnamed_addr {
6 ; CHECK-LABEL: foo_nosw:
8 ; CHECK-NEXT: xsdivsp 1, 1, 2
10 %3 = fdiv contract reassoc arcp nsz float %0, %1
14 define dso_local float @foo(float %0, float %1) local_unnamed_addr {
17 ; CHECK-NEXT: xsresp 3, 2
18 ; CHECK-NEXT: xsmulsp 0, 1, 3
19 ; CHECK-NEXT: xsnmsubasp 1, 2, 0
20 ; CHECK-NEXT: xsmaddasp 0, 3, 1
21 ; CHECK-NEXT: fmr 1, 0
23 %3 = fdiv contract reassoc arcp nsz ninf float %0, %1
27 define dso_local float @fdiv_fast(float %0, float %1) local_unnamed_addr {
28 ; CHECK-LABEL: fdiv_fast:
30 ; CHECK-NEXT: xsresp 3, 2
31 ; CHECK-NEXT: xsmulsp 0, 1, 3
32 ; CHECK-NEXT: xsnmsubasp 1, 2, 0
33 ; CHECK-NEXT: xsmaddasp 0, 3, 1
34 ; CHECK-NEXT: fmr 1, 0
36 %3 = fdiv fast float %0, %1