projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e2192b7
)
now fehler39 exposes the original bug again :)
author
Matthias Braun
<matze@braunis.de>
Wed, 11 Jul 2007 07:32:59 +0000
(07:32 +0000)
committer
Matthias Braun
<matze@braunis.de>
Wed, 11 Jul 2007 07:32:59 +0000
(07:32 +0000)
[r15019]
ir/be/test/fehler39.c
patch
|
blob
|
history
diff --git
a/ir/be/test/fehler39.c
b/ir/be/test/fehler39.c
index
ee96d98
..
c3bbaa9
100644
(file)
--- a/
ir/be/test/fehler39.c
+++ b/
ir/be/test/fehler39.c
@@
-1,22
+1,6
@@
/* register allocator fails to resolve IMul Constraints correctly */
/* register allocator fails to resolve IMul Constraints correctly */
-
-#ifdef __GNUC__
-#define NO_INLINE __attribute__((noinline))
-#else
-#define NO_INLINE __declspec(noinline)
-#endif
-
-int LightSpriteCreate()
-{
- return 42;
-}
-
-void LightSpritePosition(int x, int y, int z)
-{
- (void) x;
- (void) y;
- (void) z;
-}
+#include <stdlib.h>
+#include <stdio.h>
typedef struct
{
typedef struct
{
@@
-30,9
+14,9
@@
static void GenerateExplosionFromExplosionPointer(EXPLOSIONTYPE* pExplosion)
short sX = pExplosion->sX;
short sY = pExplosion->sY;
short sX = pExplosion->sX;
short sY = pExplosion->sY;
- if (pExplosion->iLightID =
LightSpriteCreate
())
+ if (pExplosion->iLightID =
rand
())
{
{
-
LightSpritePosition(
pExplosion->iLightID, sX / 10, sY / 10);
+
printf("Blup: %d %d %d\n",
pExplosion->iLightID, sX / 10, sY / 10);
}
}
}
}