Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc < %s -march=ppc64 -mcpu=a2q | FileCheck %s
      2 target triple = "powerpc64-bgq-linux"
      3 
      4 declare <4 x double> @foo(<4 x double> %p)
      5 
      6 define <4 x double> @bar(<4 x double> %p, <4 x double> %q) {
      7 entry:
      8   %v = call <4 x double> @foo(<4 x double> %p)
      9   %w = call <4 x double> @foo(<4 x double> %q)
     10   %x = fadd <4 x double> %v, %w
     11   ret <4 x double> %x
     12 
     13 ; CHECK-LABEL: @bar
     14 ; CHECK: qvstfdx 2,
     15 ; CHECK: bl foo
     16 ; CHECK: qvstfdx 1,
     17 ; CHECK: qvlfdx 1,
     18 ; CHECK: bl foo
     19 ; CHECK: qvlfdx [[REG:[0-9]+]],
     20 ; CHECK: qvfadd 1, [[REG]], 1
     21 }
     22 
     23