mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
add another testcase, explicitly check stuff works with G5 and G3 codegen on
PPC. llvm-svn: 26854
This commit is contained in:
parent
b46a4c28ad
commit
3490c55e51
@ -1,5 +1,7 @@
|
||||
; RUN: llvm-as < %s | llc
|
||||
; Test that vectors are scalarized/lowered correctly.
|
||||
; RUN: llvm-as < %s | llc &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g3
|
||||
|
||||
%f1 = type <1 x float>
|
||||
%f2 = type <2 x float>
|
||||
@ -76,3 +78,17 @@ void %test_variable_buildvector(float %F, %f4 *%S) {
|
||||
store %f4 %R, %f4 *%S
|
||||
ret void
|
||||
}
|
||||
|
||||
;;; TEST IMPORTANT IDIOMS
|
||||
|
||||
void %splat(%f4* %P, %f4* %Q, float %X) {
|
||||
%tmp = insertelement %f4 undef, float %X, uint 0
|
||||
%tmp2 = insertelement %f4 %tmp, float %X, uint 1
|
||||
%tmp4 = insertelement %f4 %tmp2, float %X, uint 2
|
||||
%tmp6 = insertelement %f4 %tmp4, float %X, uint 3
|
||||
%q = load %f4* %Q
|
||||
%R = add %f4 %q, %tmp6
|
||||
store %f4 %R, %f4* %P
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user