Patchwork [testsuite] : Use nop.h some more

login
register
mail settings
Submitter Uros Bizjak
Date Nov. 17, 2010, 8:37 p.m.
Message ID <AANLkTin5phhfgUuxks0p5WNKAM9oNxs=-x36Z1SH8d-m@mail.gmail.com>
Download mbox | patch
Permalink /patch/71618/
State New
Headers show

Comments

Uros Bizjak - Nov. 17, 2010, 8:37 p.m.
Hello!

2010-11-17  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.dg/nop.h: Move from ...
	* gcc.dg/guality/nop.h: ... here.
	* gcc.dg/lto/20091216-1_0.c: Include nop.h and use NOP macro.
	* gcc.dg/guality/asm-1.c: Update nop.h include.
	* gcc.dg/guality/pr43329-1.c: Ditto.

Tested on x86_64-pc-linux-gnu, committed to mainline.

Uros.

Patch

Index: gcc.dg/guality/nop.h
===================================================================
--- gcc.dg/guality/nop.h	(revision 166876)
+++ gcc.dg/guality/nop.h	(working copy)
@@ -1,7 +0,0 @@ 
-#if defined (__ia64__) || defined (__s390__) || defined (__s390x__)
-#define NOP "nop 0"
-#elif defined (__MMIX__)
-#define NOP "swym 0"
-#else
-#define NOP "nop"
-#endif
Index: gcc.dg/guality/asm-1.c
===================================================================
--- gcc.dg/guality/asm-1.c	(revision 166876)
+++ gcc.dg/guality/asm-1.c	(working copy)
@@ -1,7 +1,7 @@ 
 /* { dg-do run } */
 /* { dg-options "-g" } */
 
-#include "nop.h"
+#include "../nop.h"
 
 struct A { int x; unsigned short y; char z[64]; };
 
Index: gcc.dg/guality/pr43329-1.c
===================================================================
--- gcc.dg/guality/pr43329-1.c	(revision 166876)
+++ gcc.dg/guality/pr43329-1.c	(working copy)
@@ -2,7 +2,7 @@ 
 /* { dg-do run } */
 /* { dg-options "-g" } */
 
-#include "nop.h"
+#include "../nop.h"
 
 static inline void
 foo (int argx)
Index: gcc.dg/lto/20091216-1_0.c
===================================================================
--- gcc.dg/lto/20091216-1_0.c	(revision 166876)
+++ gcc.dg/lto/20091216-1_0.c	(working copy)
@@ -1,11 +1,9 @@ 
 /* { dg-lto-do run } */
 
-#ifdef __ia64
-asm (".globl start_\nstart_: nop 0");
-#else
-asm (".globl start_\nstart_: nop");
-#endif
+#include "../nop.h"
 
+asm (".globl start_\nstart_: " NOP);
+
 int
 main ()
 {