1 ; RUN: llvm-as < %s | llc
2 ; Test that vectors are scalarized/lowered correctly.
11 ;;; TEST HANDLING OF VARIOUS VECTOR SIZES
13 void %test_f1(%f1 *%P, %f1* %Q, %f1 *%S) {
21 void %test_f2(%f2 *%P, %f2* %Q, %f2 *%S) {
29 void %test_f4(%f4 *%P, %f4* %Q, %f4 *%S) {
37 void %test_f8(%f8 *%P, %f8* %Q, %f8 *%S) {
45 ;;; TEST VECTOR CONSTRUCTS
47 void %test_cst(%f4 *%P, %f4 *%S) {
49 %R = add %f4 %p, <float 0.1, float 1.0, float 2.0, float 4.5>
54 void %test_zero(%f4 *%P, %f4 *%S) {
56 %R = add %f4 %p, zeroinitializer
61 void %test_undef(%f4 *%P, %f4 *%S) {
63 %R = add %f4 %p, undef