mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
39 lines
763 B
ArmAsm
39 lines
763 B
ArmAsm
.file "twoparams.c"
|
|
.version "01.01"
|
|
gcc2_compiled.:
|
|
.text
|
|
.align 4
|
|
.globl fooble
|
|
.type fooble,@function
|
|
fooble:
|
|
pushl %ebp
|
|
movl %esp, %ebp
|
|
movl 8(%ebp), %eax
|
|
|
|
subl 12(%ebp), %eax
|
|
# flags are now undef if either operand is
|
|
# save possibly undef flags on stack
|
|
pushfl
|
|
|
|
movl $0, %eax
|
|
addl $0, %eax
|
|
# flags are now definitely defined
|
|
|
|
popfl
|
|
# resulting flag definedness depends on outcome of sub above
|
|
# should override that created by 0 + 0 above
|
|
|
|
# now use the condition codes to generate a value
|
|
# in a way which will cause undefinedness to get reported
|
|
jz labelz
|
|
movl $22, %eax
|
|
jmp theend
|
|
labelz:
|
|
movl $33, %eax
|
|
theend:
|
|
popl %ebp
|
|
ret
|
|
.Lfe1:
|
|
.size fooble,.Lfe1-fooble
|
|
.ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.1 2.96-98)"
|