[cfe-commits] r119434 - /cfe/trunk/test/CodeGen/arm-vector-arguments.c

Bob Wilson bob.wilson at apple.com
Tue Nov 16 16:44:54 PST 2010


Author: bwilson
Date: Tue Nov 16 18:44:53 2010
New Revision: 119434

URL: http://llvm.org/viewvc/llvm-project?rev=119434&view=rev
Log:
Re-enable test with modifications for Neon vector changes in clang.
I mistakenly thought that this was checking for vector name mangling, but
it is not.  Since we're no longer wrapping Neon vectors in structs, this
test can just return a vector directly.  There are already other tests for
that, so just to make this interesting, change the test to return a struct
of two vectors.

Modified:
    cfe/trunk/test/CodeGen/arm-vector-arguments.c

Modified: cfe/trunk/test/CodeGen/arm-vector-arguments.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/arm-vector-arguments.c?rev=119434&r1=119433&r2=119434&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/arm-vector-arguments.c (original)
+++ cfe/trunk/test/CodeGen/arm-vector-arguments.c Tue Nov 16 18:44:53 2010
@@ -8,9 +8,9 @@
 
 #include <arm_neon.h>
 
-// temporarily skip check: define void @f0(%struct.__simd128_int8_t* sret %agg.result, <16 x i8> %{{.*}}, <16 x i8> %{{.*}})
-int8x16_t f0(int8x16_t a0, int8x16_t a1) {
-  return vzipq_s8(a0, a1).val[0];
+// CHECK: define void @f0(%struct.int8x16x2_t* sret %agg.result, <16 x i8> %{{.*}}, <16 x i8> %{{.*}})
+int8x16x2_t f0(int8x16_t a0, int8x16_t a1) {
+  return vzipq_s8(a0, a1);
 }
 
 // Test direct vector passing.





More information about the cfe-commits mailing list