summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-08 20:10:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-08 20:10:52 +0000
commit51c4bc320e69b354460038cc1c7031081378feaa (patch)
treedcb683659b1465f0ccc989dc2bc41baf596b0be7 /clang
parentbd953333f8e2fd86462d91a2c9706ac36fe5b777 (diff)
downloadbcm5719-llvm-51c4bc320e69b354460038cc1c7031081378feaa.tar.gz
bcm5719-llvm-51c4bc320e69b354460038cc1c7031081378feaa.zip
ABITest: Move default set of test args into common makefile.
Also, tweak default list of bit-fields to try. llvm-svn: 71246
Diffstat (limited to 'clang')
-rwxr-xr-xclang/utils/ABITest/ABITestGen.py2
-rw-r--r--clang/utils/ABITest/Makefile.test.common2
-rw-r--r--clang/utils/ABITest/return-types-32/Makefile3
-rw-r--r--clang/utils/ABITest/return-types-64/Makefile3
-rw-r--r--clang/utils/ABITest/single-args-32/Makefile24
-rw-r--r--clang/utils/ABITest/single-args-64/Makefile24
6 files changed, 55 insertions, 3 deletions
diff --git a/clang/utils/ABITest/ABITestGen.py b/clang/utils/ABITest/ABITestGen.py
index eb57b7c977d..afe58e58d0f 100755
--- a/clang/utils/ABITest/ABITestGen.py
+++ b/clang/utils/ABITest/ABITestGen.py
@@ -430,7 +430,7 @@ def main():
action="store", type=str, default='v2i16, v1i64, v2i32, v4i16, v8i8, v2f32, v2i64, v4i32, v8i16, v16i8, v2f64, v4f32, v16f32', metavar="N")
group.add_option("", "--bit-fields", dest="bitFields",
help="comma separated list 'type:width' bit-field specifiers [default %default]",
- action="store", type=str, default="char:0,char:4,unsigned:0,unsigned:13")
+ action="store", type=str, default="char:0,char:4,unsigned:0,unsigned:4,unsigned:13,unsigned:24")
group.add_option("", "--max-args", dest="functionMaxArgs",
help="maximum number of arguments per function [default %default]",
action="store", type=int, default=4, metavar="N")
diff --git a/clang/utils/ABITest/Makefile.test.common b/clang/utils/ABITest/Makefile.test.common
index db3364605a2..b7d6b127074 100644
--- a/clang/utils/ABITest/Makefile.test.common
+++ b/clang/utils/ABITest/Makefile.test.common
@@ -1,5 +1,7 @@
# -*- Makefile -*-
+TESTARGS := --no-unsigned --no-vector --no-complex --no-bool --no-bit-field
+
ABITESTGEN := ../ABITestGen.py
ifndef VERBOSE
diff --git a/clang/utils/ABITest/return-types-32/Makefile b/clang/utils/ABITest/return-types-32/Makefile
index 0d900587c34..3749f5bfd18 100644
--- a/clang/utils/ABITest/return-types-32/Makefile
+++ b/clang/utils/ABITest/return-types-32/Makefile
@@ -4,7 +4,6 @@
# file, and TESTARGS is used to change the type generation. Make sure
# to 'make clean' after changing either of these parameters.
-TESTARGS := --no-vector --no-complex --max-record-depth 0 --bit-fields "char:2,char:0,char:4" --max-args 0 --max-record 2 --no-builtins
COUNT := 1
TIMEOUT := 5
@@ -21,3 +20,5 @@ Y_CFLAGS := -m32
CC_CFLAGS := -m32
include ../Makefile.test.common
+
+TESTARGS += --max-args 0
diff --git a/clang/utils/ABITest/return-types-64/Makefile b/clang/utils/ABITest/return-types-64/Makefile
index 2ecb7598aba..5ad38894b1e 100644
--- a/clang/utils/ABITest/return-types-64/Makefile
+++ b/clang/utils/ABITest/return-types-64/Makefile
@@ -4,7 +4,6 @@
# file, and TESTARGS is used to change the type generation. Make sure
# to 'make clean' after changing either of these parameters.
-TESTARGS := --max-args 0 --no-unsigned --no-bit-field
COUNT := 1
TIMEOUT := 5
@@ -21,3 +20,5 @@ Y_CFLAGS := -m64
CC_CFLAGS := -m64
include ../Makefile.test.common
+
+TESTARGS += --max-args 0
diff --git a/clang/utils/ABITest/single-args-32/Makefile b/clang/utils/ABITest/single-args-32/Makefile
new file mode 100644
index 00000000000..207a35a73ed
--- /dev/null
+++ b/clang/utils/ABITest/single-args-32/Makefile
@@ -0,0 +1,24 @@
+# Usage: make test.N.report
+#
+# COUNT can be over-ridden to change the number of tests generated per
+# file, and TESTARGS is used to change the type generation. Make sure
+# to 'make clean' after changing either of these parameters.
+
+COUNT := 1
+TIMEOUT := 5
+
+CFLAGS := -std=gnu99
+
+X_COMPILER := gcc
+X_LL_CFLAGS := -emit-llvm -S
+Y_COMPILER := clang
+Y_LL_CFLAGS := -emit-llvm -S
+CC := gcc
+
+X_CFLAGS := -m32
+Y_CFLAGS := -m32
+CC_CFLAGS := -m32
+
+include ../Makefile.test.common
+
+TESTARGS += --no-function-return --max-args 1
diff --git a/clang/utils/ABITest/single-args-64/Makefile b/clang/utils/ABITest/single-args-64/Makefile
new file mode 100644
index 00000000000..8653cf45145
--- /dev/null
+++ b/clang/utils/ABITest/single-args-64/Makefile
@@ -0,0 +1,24 @@
+# Usage: make test.N.report
+#
+# COUNT can be over-ridden to change the number of tests generated per
+# file, and TESTARGS is used to change the type generation. Make sure
+# to 'make clean' after changing either of these parameters.
+
+COUNT := 1
+TIMEOUT := 5
+
+CFLAGS := -std=gnu99
+
+X_COMPILER := gcc
+X_LL_CFLAGS := -emit-llvm -S
+Y_COMPILER := clang
+Y_LL_CFLAGS := -emit-llvm -S
+CC := gcc
+
+X_CFLAGS := -m64
+Y_CFLAGS := -m64
+CC_CFLAGS := -m64
+
+include ../Makefile.test.common
+
+TESTARGS += --no-function-return --max-args 1
OpenPOWER on IntegriCloud