1 ; RUN: llc < %s -mtriple=ppc64-unknown-linux-gnu -mattr=+vsx \
2 ; RUN: -verify-machineinstrs | FileCheck %s --check-prefix=VSX
3 ; RUN: llc < %s -mtriple=ppc64-unknown-linux-gnu -mattr=-vsx \
4 ; RUN: -verify-machineinstrs | FileCheck %s --check-prefix=NOVSX
6 define <2 x double> @interleaving_VSX_VMX(
7 <2 x double> %a, <2 x double> %b, <2 x double> %c,
8 <2 x double> %d, <2 x double> %e, <2 x double> %f) {
10 tail call void asm sideeffect "# clobbers",
11 "~{v14},~{v15},~{v16},~{v17},~{v18},~{v19},~{v20},~{v21},~{v22},~{v23},~{v24},~{v25},~{v26},~{v27},~{v28},~{v29},~{v30},~{v31}"() nounwind
12 tail call void @goo(<2 x double> %a) nounwind
13 %add = fadd <2 x double> %a, %b
14 %sub = fsub <2 x double> %a, %b
15 %mul = fmul <2 x double> %add, %sub
16 %add1 = fadd <2 x double> %c, %d
17 %sub2 = fsub <2 x double> %c, %d
18 %mul3 = fmul <2 x double> %add1, %sub2
19 %add4 = fadd <2 x double> %mul, %mul3
20 %add5 = fadd <2 x double> %e, %f
21 %sub6 = fsub <2 x double> %e, %f
22 %mul7 = fmul <2 x double> %add5, %sub6
23 %add8 = fadd <2 x double> %add4, %mul7
24 ret <2 x double> %add8
25 ; VSX-LABEL: interleaving_VSX_VMX
29 ; NOVSX-LABEL: interleaving_VSX_VMX
34 declare void @goo(<2 x double>)