]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Move pr114396.c from gcc.target/i386 to gcc.c-torture/execute.
authorliuhongt <hongtao.liu@intel.com>
Fri, 22 Mar 2024 02:09:43 +0000 (10:09 +0800)
committerliuhongt <hongtao.liu@intel.com>
Fri, 22 Mar 2024 02:14:58 +0000 (10:14 +0800)
Also fixed a typo in the testcase.

gcc/testsuite/ChangeLog:

PR tree-optimization/114396
* gcc.target/i386/pr114396.c: Move to...
* gcc.c-torture/execute/pr114396.c: ...here.

gcc/testsuite/gcc.c-torture/execute/pr114396.c [moved from gcc/testsuite/gcc.target/i386/pr114396.c with 92% similarity]

similarity index 92%
rename from gcc/testsuite/gcc.target/i386/pr114396.c
rename to gcc/testsuite/gcc.c-torture/execute/pr114396.c
index 4c4015f871f39c076e541c27068834a163b88e2f..baf90eafabfe407aa928b39449bad15b4548d854 100644 (file)
@@ -1,5 +1,5 @@
-/* { dg-do run } */
-/* { dg-options "-O1 -fwrapv -fno-vect-cost-model" } */
+/* PR tree-optimization/114396 */
+/* { dg-additional-options "-fwrapv -fno-vect-cost-model" } */
 
 short a = 0xF;
 short b[16];
@@ -88,7 +88,7 @@ int main() {
 
   exp = foo1 (a);
   res = foo1_o3 (a);
-  if (uexp != ures)
+  if (exp != res)
     __builtin_abort ();
 
   uexp = foou (a);