view test/CodeGen/PowerPC/qpx-func-clobber.ll @ 100:7d135dc70f03 LLVM 3.9

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents afa8332a0e37
children 1172e4bd9c6f
line wrap: on
line source

; RUN: llc < %s -march=ppc64 -mcpu=a2q | FileCheck %s
target triple = "powerpc64-bgq-linux"

declare <4 x double> @foo(<4 x double> %p)

define <4 x double> @bar(<4 x double> %p, <4 x double> %q) {
entry:
  %v = call <4 x double> @foo(<4 x double> %p)
  %w = call <4 x double> @foo(<4 x double> %q)
  %x = fadd <4 x double> %v, %w
  ret <4 x double> %x

; CHECK-LABEL: @bar
; CHECK: qvstfdx 2,
; CHECK: bl foo
; CHECK: qvstfdx 1,
; CHECK: qvlfdx 1,
; CHECK: bl foo
; CHECK: qvlfdx [[REG:[0-9]+]],
; CHECK: qvfadd 1, [[REG]], 1
}