summaryrefslogtreecommitdiffstats
path: root/llvm/test/FrontendC++/2008-02-13-sret.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-08 07:58:23 +0000
committerChris Lattner <sabre@nondot.org>2009-01-08 07:58:23 +0000
commit55927bdccd6f0c3788bd59d724c91af8d8d615cf (patch)
tree51b465633c23d74736a9fbc502f42fdfa0bc6fef /llvm/test/FrontendC++/2008-02-13-sret.cpp
parentcaeab626e4aad88ccd2f93405990eebc2871997b (diff)
downloadbcm5719-llvm-55927bdccd6f0c3788bd59d724c91af8d8d615cf.tar.gz
bcm5719-llvm-55927bdccd6f0c3788bd59d724c91af8d8d615cf.zip
the new scalarrepl changes are optimizing away a temporary alloca in
check242, which invalidates this test. This test is an x86-32 ABI test that is trying to be run in a target-independent way, which is not going to work very well. Just remove the test. llvm-svn: 61921
Diffstat (limited to 'llvm/test/FrontendC++/2008-02-13-sret.cpp')
-rw-r--r--llvm/test/FrontendC++/2008-02-13-sret.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/llvm/test/FrontendC++/2008-02-13-sret.cpp b/llvm/test/FrontendC++/2008-02-13-sret.cpp
deleted file mode 100644
index 15bfa2ddabd..00000000000
--- a/llvm/test/FrontendC++/2008-02-13-sret.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-// RUN: %llvmgxx -S -O1 -m32 -emit-llvm %s -o - | grep {store i32} | count 1
-
-// Test that all 8 bytes of ret in check242 are copied, and only 4 bytes of
-// ret in check93 are copied (the same LLVM struct is used for both).
-
-typedef __builtin_va_list va_list;
-typedef unsigned long size_t;
-void *memset(void *, int, size_t);
-
-struct S93 { __attribute__((aligned (8))) void * a; } ;
- extern struct S93 s93;
- struct S93 check93 () {
- struct S93 ret;
- memset (&ret, 0, sizeof (ret));
- ret.a = s93.a;
- return ret; }
-
-struct S242 { char * a;int b[1]; } ;
- extern struct S242 s242;
-
- struct S242 check242 () {
- struct S242 ret;
- memset (&ret, 0, sizeof (ret));
- ret.a = s242.a;
- ret.b[0] = s242.b[0];
- return ret; }
-
-void check93va (int z, ...) {
- struct S93 arg;
- va_list ap;
- __builtin_va_start(ap,z);
- arg = __builtin_va_arg(ap,struct S93);
- __builtin_va_end(ap); }
-
-void check242va (int z, ...) {
-struct S242 arg;
-va_list ap;
-__builtin_va_start(ap,z);
- arg = __builtin_va_arg(ap,struct S242);
- __builtin_va_end(ap); }
-
OpenPOWER on IntegriCloud