• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mcpu=pwr7 -mattr=+vsx | FileCheck %s
2; RUN: llc < %s -mcpu=pwr7 -mattr=+vsx -fast-isel -O0 | FileCheck %s
3target datalayout = "E-m:e-i64:64-n32:64"
4target triple = "powerpc64-unknown-linux-gnu"
5
6declare <2 x double> @sv(<2 x double>, <2 x i64>, <4 x float>) #0
7
8define <2 x double> @main(<4 x float> %a, <2 x double> %b, <2 x i64> %c) #1 {
9entry:
10  %ca = tail call <2 x double> @sv(<2 x double> %b, <2 x i64> %c,  <4 x float> %a)
11  %v = fadd <2 x double> %ca, <double 1.0, double 1.0>
12  ret <2 x double> %v
13
14; CHECK-LABEL: @main
15; CHECK-DAG: vor [[V:[0-9]+]], 2, 2
16; CHECK-DAG: xxlor 34, 35, 35
17; CHECK-DAG: xxlor 35, 36, 36
18; CHECK-DAG: vor 4, [[V]], [[V]]
19; CHECK-DAG: bl sv
20; CHECK-DAG: lxvd2x [[VC:[0-9]+]],
21; CHECK: xvadddp 34, 34, [[VC]]
22; CHECK: blr
23}
24
25attributes #0 = { noinline nounwind readnone }
26attributes #1 = { nounwind }
27
28