summaryrefslogtreecommitdiff
path: root/test/FrontendC
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-06-01 18:23:56 +0000
committerEric Christopher <echristo@apple.com>2011-06-01 18:23:56 +0000
commita3d91cd6a6384478d88ed3022ea4bda8646fedea (patch)
treeda942906d3a8d733080f159b2c029d75675c5c6e /test/FrontendC
parent0f971b1fdb9b6d28e6d0c83f65a0411923495c6f (diff)
downloadllvm-a3d91cd6a6384478d88ed3022ea4bda8646fedea.tar.gz
llvm-a3d91cd6a6384478d88ed3022ea4bda8646fedea.tar.bz2
llvm-a3d91cd6a6384478d88ed3022ea4bda8646fedea.tar.xz
Add a testcase, enabled only on arm, for llvm-gcc r132366.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC')
-rw-r--r--test/FrontendC/struct-matching-constraint.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/FrontendC/struct-matching-constraint.c b/test/FrontendC/struct-matching-constraint.c
new file mode 100644
index 0000000000..d002cddeef
--- /dev/null
+++ b/test/FrontendC/struct-matching-constraint.c
@@ -0,0 +1,19 @@
+// RUN: %llvmgcc -S -march=armv7a %s
+
+// XFAIL: *
+// XTARGET: arm
+
+typedef struct __simd128_uint16_t
+{
+ __neon_uint16x8_t val;
+} uint16x8_t;
+
+void b(uint16x8_t sat, uint16x8_t luma)
+{
+ __asm__("vmov.16 %1, %0 \n\t"
+ "vtrn.16 %0, %1 \n\t"
+ :"=w"(luma), "=w"(sat)
+ :"0"(luma)
+ );
+
+}