1 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
3 ; Following test case checks:
6 ; recip = 1.0 / D; a * recip; b * recip; c * recip;
8 define void @three_fdiv_double(double %D, double %a, double %b, double %c) #0 {
9 ; CHECK-LABEL: three_fdiv_double:
10 ; CHECK: fdiv {{[0-9]}}
15 %div = fdiv arcp double %a, %D
16 %div1 = fdiv arcp double %b, %D
17 %div2 = fdiv arcp double %c, %D
18 tail call void @foo_3d(double %div, double %div1, double %div2)
22 define void @two_fdiv_double(double %D, double %a, double %b) #0 {
23 ; CHECK-LABEL: two_fdiv_double:
24 ; CHECK: fdiv {{[0-9]}}
25 ; CHECK: fdiv {{[0-9]}}
27 %div = fdiv arcp double %a, %D
28 %div1 = fdiv arcp double %b, %D
29 tail call void @foo_2d(double %div, double %div1)
33 declare void @foo_3d(double, double, double)
34 declare void @foo_3_2xd(<2 x double>, <2 x double>, <2 x double>)
35 declare void @foo_2d(double, double)