llvm.org GIT mirror llvm / 1e4af78
Add three new testcases git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26844 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
1 changed file(s) with 25 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
66 %f8 = type <8 x float>
77
88 implementation
9
10 ;;; TEST HANDLING OF VARIOUS VECTOR SIZES
911
1012 void %test_f1(%f1 *%P, %f1* %Q, %f1 *%S) {
1113 %p = load %f1 *%P
3840 store %f8 %R, %f8 *%S
3941 ret void
4042 }
43
44 ;;; TEST VECTOR CONSTRUCTS
45
46 void %test_cst(%f4 *%P, %f4 *%S) {
47 %p = load %f4* %P
48 %R = add %f4 %p,
49 store %f4 %R, %f4 *%S
50 ret void
51 }
52
53 void %test_zero(%f4 *%P, %f4 *%S) {
54 %p = load %f4* %P
55 %R = add %f4 %p, zeroinitializer
56 store %f4 %R, %f4 *%S
57 ret void
58 }
59
60 void %test_undef(%f4 *%P, %f4 *%S) {
61 %p = load %f4* %P
62 %R = add %f4 %p, undef
63 store %f4 %R, %f4 *%S
64 ret void
65 }