Last change
on this file since 600 was 599, checked in by bird, 22 years ago |
'Completed' the testcase.
|
-
Property cvs2svn:cvs-rev
set to
1.3
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.8 KB
|
Rev | Line | |
---|
[594] | 1 | .file "570asm.s"
|
---|
| 2 |
|
---|
| 3 | .text
|
---|
| 4 |
|
---|
| 5 | .globl ExternCVoid
|
---|
| 6 | ExternCVoid:
|
---|
[599] | 7 | jmp verify
|
---|
[594] | 8 |
|
---|
| 9 | .globl ExternCPVoid
|
---|
| 10 | ExternCPVoid:
|
---|
[599] | 11 | jmp verify
|
---|
[594] | 12 |
|
---|
| 13 | .globl ExternCInt
|
---|
| 14 | ExternCInt:
|
---|
[599] | 15 | jmp verify
|
---|
[594] | 16 |
|
---|
| 17 | .globl ExternCPType
|
---|
| 18 | ExternCPType:
|
---|
[599] | 19 | jmp verify
|
---|
[594] | 20 |
|
---|
| 21 | .globl Void
|
---|
| 22 | Void:
|
---|
[599] | 23 | jmp verify
|
---|
[594] | 24 |
|
---|
| 25 | .globl PVoid
|
---|
| 26 | PVoid:
|
---|
[599] | 27 | jmp verify
|
---|
[594] | 28 |
|
---|
| 29 | .globl Int
|
---|
| 30 | Int:
|
---|
[599] | 31 | jmp verify
|
---|
[594] | 32 |
|
---|
| 33 | .globl PType
|
---|
| 34 | PType:
|
---|
[599] | 35 | jmp verify
|
---|
[594] | 36 |
|
---|
| 37 |
|
---|
[599] | 38 | .globl __ZN3foo16StaticMemberVoidEiiii
|
---|
| 39 | __ZN3foo16StaticMemberVoidEiiii:
|
---|
| 40 | jmp verify
|
---|
[594] | 41 |
|
---|
[599] | 42 | .globl __ZN3foo17StaticMemberPVoidEiiii
|
---|
| 43 | __ZN3foo17StaticMemberPVoidEiiii:
|
---|
| 44 | jmp verify
|
---|
[594] | 45 |
|
---|
[599] | 46 | .globl __ZN3foo15StaticMemberIntEiiii
|
---|
| 47 | __ZN3foo15StaticMemberIntEiiii:
|
---|
| 48 | jmp verify
|
---|
[594] | 49 |
|
---|
[599] | 50 | .globl __ZN3foo17StaticMemberPTypeEiiii
|
---|
| 51 | __ZN3foo17StaticMemberPTypeEiiii:
|
---|
| 52 | jmp verify
|
---|
[594] | 53 |
|
---|
[595] | 54 |
|
---|
[599] | 55 | .globl __ZN3foo10MemberVoidEiiii
|
---|
| 56 | __ZN3foo10MemberVoidEiiii:
|
---|
| 57 | jmp verify2
|
---|
[595] | 58 |
|
---|
[599] | 59 | .globl __ZN3foo11MemberPVoidEiiii
|
---|
| 60 | __ZN3foo11MemberPVoidEiiii:
|
---|
| 61 | jmp verify2
|
---|
| 62 |
|
---|
| 63 | .globl __ZN3foo9MemberIntEiiii
|
---|
| 64 | __ZN3foo9MemberIntEiiii:
|
---|
| 65 | jmp verify2
|
---|
| 66 |
|
---|
| 67 | .globl __ZN3foo11MemberPTypeEiiii
|
---|
| 68 | __ZN3foo11MemberPTypeEiiii:
|
---|
| 69 | jmp verify2
|
---|
| 70 |
|
---|
| 71 |
|
---|
| 72 |
|
---|
| 73 | verify:
|
---|
| 74 | pushl %ebp
|
---|
| 75 | movl %esp, %ebp
|
---|
| 76 |
|
---|
| 77 | movl 8(%ebp), %eax
|
---|
| 78 | cmpl $1, %eax
|
---|
| 79 | je ok1
|
---|
| 80 | int $3
|
---|
| 81 |
|
---|
| 82 | ok1:
|
---|
| 83 | movl 12(%ebp), %eax
|
---|
| 84 | cmpl $2, %eax
|
---|
| 85 | je ok2
|
---|
| 86 | int $3
|
---|
| 87 |
|
---|
| 88 |
|
---|
| 89 | ok2:
|
---|
| 90 | movl 16(%ebp), %eax
|
---|
| 91 | cmpl $3, %eax
|
---|
| 92 | je ok3
|
---|
| 93 | int $3
|
---|
| 94 |
|
---|
| 95 | ok3:
|
---|
| 96 | movl 20(%ebp), %eax
|
---|
| 97 | cmpl $4, %eax
|
---|
| 98 | je ok4
|
---|
| 99 | int $3
|
---|
| 100 |
|
---|
| 101 | ok4:
|
---|
| 102 | mov %ebp, %ebp
|
---|
| 103 | popl %ebp
|
---|
[595] | 104 | ret
|
---|
| 105 |
|
---|
[599] | 106 |
|
---|
| 107 | verify2:
|
---|
| 108 | pushl %ebp
|
---|
| 109 | movl %esp, %ebp
|
---|
| 110 |
|
---|
| 111 | movl 4(%ebp), %eax
|
---|
| 112 | test %eax, %eax
|
---|
| 113 | jnz okthis
|
---|
| 114 | int $3
|
---|
| 115 |
|
---|
| 116 | okthis:
|
---|
| 117 | movl 12(%ebp), %eax
|
---|
| 118 | cmpl $1, %eax
|
---|
| 119 | je ok21
|
---|
| 120 | int $3
|
---|
| 121 |
|
---|
| 122 | ok21:
|
---|
| 123 | movl 16(%ebp), %eax
|
---|
| 124 | cmpl $2, %eax
|
---|
| 125 | je ok22
|
---|
| 126 | int $3
|
---|
| 127 |
|
---|
| 128 |
|
---|
| 129 | ok22:
|
---|
| 130 | movl 20(%ebp), %eax
|
---|
| 131 | cmpl $3, %eax
|
---|
| 132 | je ok23
|
---|
| 133 | int $3
|
---|
| 134 |
|
---|
| 135 | ok23:
|
---|
| 136 | movl 24(%ebp), %eax
|
---|
| 137 | cmpl $4, %eax
|
---|
| 138 | je ok24
|
---|
| 139 | int $3
|
---|
| 140 |
|
---|
| 141 | ok24:
|
---|
| 142 | mov %ebp, %ebp
|
---|
| 143 | popl %ebp
|
---|
[595] | 144 | ret
|
---|
| 145 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.