20000724-1.c: Don't use multiline strings.
2001-03-06 Zack Weinberg <zackw@stanford.edu> * gcc.dg/20000724-1.c: Don't use multiline strings. From-SVN: r40278
This commit is contained in:
parent
07ed7ecf08
commit
8b44d68f7b
2 changed files with 22 additions and 10 deletions
|
@ -1,3 +1,7 @@
|
|||
2001-03-06 Zack Weinberg <zackw@stanford.edu>
|
||||
|
||||
* gcc.dg/20000724-1.c: Don't use multiline strings.
|
||||
|
||||
2001-03-06 Zack Weinberg <zackw@stanford.edu>
|
||||
|
||||
* objc/execute/string1.m, objc/execute/string2.m: Compare the
|
||||
|
|
|
@ -30,16 +30,24 @@ void do_check(struct s *x)
|
|||
abort();
|
||||
}
|
||||
|
||||
asm ("
|
||||
___checkme:
|
||||
pushl %eax; pushl %ebx; pushl %ecx; pushl %edx; pushl %esi; pushl %edi; pushl $0; pushl $0
|
||||
pushl $0; pushl $0; pushl $0; pushl $0; pushl $0; pushl $0; pushl $0; pushl $0
|
||||
movl %ecx, %eax
|
||||
call do_check
|
||||
popl %eax; popl %eax; popl %eax; popl %eax; popl %eax; popl %eax; popl %eax; popl %eax
|
||||
popl %eax; popl %eax; popl %edi; popl %esi; popl %edx; popl %ecx; popl %ebx; popl %eax
|
||||
ret
|
||||
");
|
||||
#define NT "\n\t"
|
||||
|
||||
asm ("\n"
|
||||
"___checkme:"
|
||||
NT "pushl %eax; pushl %ebx; pushl %ecx; pushl %edx; pushl %esi; pushl %edi"
|
||||
|
||||
NT "pushl $0; pushl $0; pushl $0; pushl $0; pushl $0"
|
||||
NT "pushl $0; pushl $0; pushl $0; pushl $0; pushl $0"
|
||||
|
||||
NT "movl %ecx, %eax"
|
||||
NT "call do_check"
|
||||
|
||||
NT "popl %eax; popl %eax; popl %eax; popl %eax; popl %eax"
|
||||
NT "popl %eax; popl %eax; popl %eax; popl %eax; popl %eax"
|
||||
|
||||
NT "popl %edi; popl %esi; popl %edx; popl %ecx; popl %ebx; popl %eax"
|
||||
NT "ret"
|
||||
);
|
||||
|
||||
extern inline void do_asm(struct s * x)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue