sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 1 | .file "twoparams.c" |
| 2 | .version "01.01" |
| 3 | gcc2_compiled.: |
| 4 | .text |
| 5 | .align 4 |
| 6 | .globl fooble |
| 7 | .type fooble,@function |
| 8 | fooble: |
| 9 | pushl %ebp |
| 10 | movl %esp, %ebp |
| 11 | movl 8(%ebp), %eax |
| 12 | |
| 13 | subl 12(%ebp), %eax |
| 14 | # flags are now undef if either operand is |
| 15 | # save possibly undef flags on stack |
| 16 | pushfl |
| 17 | |
| 18 | movl $0, %eax |
| 19 | addl $0, %eax |
| 20 | # flags are now definitely defined |
| 21 | |
| 22 | popfl |
| 23 | # resulting flag definedness depends on outcome of sub above |
| 24 | # should override that created by 0 + 0 above |
| 25 | |
| 26 | # now use the condition codes to generate a value |
| 27 | # in a way which will cause undefinedness to get reported |
| 28 | jz labelz |
| 29 | movl $22, %eax |
| 30 | jmp theend |
| 31 | labelz: |
| 32 | movl $33, %eax |
| 33 | theend: |
| 34 | popl %ebp |
| 35 | ret |
| 36 | .Lfe1: |
| 37 | .size fooble,.Lfe1-fooble |
| 38 | .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)" |