summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-23 21:57:13 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-23 21:57:13 +0000
commitb32fbb9d77fe69be97983b487ef67d7982131ab0 (patch)
tree752c4e1a5b8bc2b102f36c18bf155b7ebdfc6208 /gcc/testsuite
parentce3765bf44e49ef0568a1ad4a0b7f807591d6412 (diff)
downloadgcc-b32fbb9d77fe69be97983b487ef67d7982131ab0.tar.gz
Properly check OPTION_MASK_ISA_64BIT.
gcc/ 2010-05-23 H.J. Lu <hongjiu.lu@intel.com> PR target/44245 * config/i386/i386.c (def_builtin): Properly check OPTION_MASK_ISA_64BIT. gcc/testsuite/ 2010-05-23 H.J. Lu <hongjiu.lu@intel.com> PR target/44245 * gcc.target/i386/crc32-3.c: New. * gcc.target/i386/crc32-4.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159768 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.target/i386/crc32-3.c10
-rw-r--r--gcc/testsuite/gcc.target/i386/crc32-4.c9
3 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1e748af6865..4f8e6a2d493 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/44245
+ * gcc.target/i386/crc32-3.c: New.
+ * gcc.target/i386/crc32-4.c: Likewise.
+
2010-05-23 Joseph Myers <joseph@codesourcery.com>
* gcc.dg/c1x-typedef-1.c, gcc.dg/c1x-typedef-2.c,
diff --git a/gcc/testsuite/gcc.target/i386/crc32-3.c b/gcc/testsuite/gcc.target/i386/crc32-3.c
new file mode 100644
index 00000000000..e77d7d99d1f
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/crc32-3.c
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-options "-O2 -mcrc32" } */
+/* { dg-final { scan-assembler "__builtin_ia32_crc32di" } } */
+
+unsigned long long
+crc32d (unsigned long long x, unsigned long long y)
+{
+ return __builtin_ia32_crc32di (x, y);
+}
diff --git a/gcc/testsuite/gcc.target/i386/crc32-4.c b/gcc/testsuite/gcc.target/i386/crc32-4.c
new file mode 100644
index 00000000000..65ef4aa1a96
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/crc32-4.c
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -mno-sse4.2 -mno-crc32" } */
+/* { dg-final { scan-assembler "__builtin_ia32_crc32di" } } */
+
+unsigned long long
+crc32d (unsigned long long x, unsigned long long y)
+{
+ return __builtin_ia32_crc32di (x, y);
+}