]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Thu, 5 Sep 2002 23:05:04 +0000 (23:05 +0000)
committerNo Author <no-author@gcc.gnu.org>
Thu, 5 Sep 2002 23:05:04 +0000 (23:05 +0000)
'gcc-3_2-branch'.

From-SVN: r56869

gcc/testsuite/gcc.c-torture/execute/extzvsi.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.c-torture/execute/extzvsi.c b/gcc/testsuite/gcc.c-torture/execute/extzvsi.c
new file mode 100644 (file)
index 0000000..ba25127
--- /dev/null
@@ -0,0 +1,31 @@
+/* Failed on powerpc due to bad extzvsi pattern.  */
+
+struct ieee
+{
+  unsigned int negative:1;
+  unsigned int exponent:11;
+  unsigned int mantissa0:20;
+  unsigned int mantissa1:32;
+} x;
+
+unsigned int
+foo (void)
+{
+  unsigned int exponent;
+
+  exponent = x.exponent;
+  if (exponent == 0)
+    return 1;
+  else if (exponent > 1)
+    return 2;
+  return 0;
+}
+
+int
+main (void)
+{
+  x.exponent = 1;
+  if (foo () != 0)
+    abort ();
+  return 0;
+}