[PowerPC] Add support for the QPX vector instruction set
[oota-llvm.git] / test / CodeGen / PowerPC / qpx-s-store.ll
1 ; RUN: llc < %s -march=ppc64 -mcpu=a2q | FileCheck %s
2
3 define void @foo(<4 x float> %v, <4 x float>* %p) {
4 entry:
5   store <4 x float> %v, <4 x float>* %p, align 4
6   ret void
7 }
8
9 ; CHECK: @foo
10 ; CHECK: stfs
11 ; CHECK: stfs
12 ; CHECK: stfs
13 ; CHECK: stfs
14 ; CHECK: blr
15
16 define void @bar(<4 x float> %v, <4 x float>* %p) {
17 entry:
18   store <4 x float> %v, <4 x float>* %p, align 16
19   ret void
20 }
21
22 ; CHECK: @bar
23 ; CHECK: qvstfsx
24