sewardj | 23981dd | 2007-11-15 22:33:32 +0000 | [diff] [blame] | 1 | |
| 2 | /* As discussed on valgrind-users in the thread |
| 3 | http://comments.gmane.org/gmane.comp.debugging.valgrind/7535 |
| 4 | valgrinding Wine running a large win32 app (Picasa) fails with the message |
| 5 | |
| 6 | vex: priv/host-x86/isel.c:510 (doHelperCall): Assertion |
| 7 | `typeOfIRExpr(env->type_env, args[i]) == Ity_I32' failed. |
| 8 | |
| 9 | See http://bugs.kde.org/show_bug.cgi?id=152022 |
| 10 | |
| 11 | This little fragment used to cause Memcheck to assert, so if the |
| 12 | program runs to completion without dying, the test is passed. |
| 13 | */ |
| 14 | |
| 15 | |
| 16 | int main ( void ) { |
| 17 | __asm__ __volatile__( "subw $0x28, %%sp\n" |
| 18 | "movl $0, 0(%%esp)\n" |
| 19 | "addw $0x28, %%sp" : : : "memory" ); |
| 20 | return 0; |
| 21 | } |
| 22 | |