summaryrefslogtreecommitdiff
path: root/test/torture-s/eeprof-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/eeprof-1.c.s')
-rw-r--r--test/torture-s/eeprof-1.c.s228
1 files changed, 129 insertions, 99 deletions
diff --git a/test/torture-s/eeprof-1.c.s b/test/torture-s/eeprof-1.c.s
index 5a0f1291a..789425b0d 100644
--- a/test/torture-s/eeprof-1.c.s
+++ b/test/torture-s/eeprof-1.c.s
@@ -27,51 +27,61 @@ foo: # @foo
.globl nfoo
.type nfoo,@function
nfoo: # @nfoo
- .local i32, i32, i32
# BB#0: # %entry
- i32.const $0=, 0
- i32.const $1=, 2
block
- i32.load $push1=, entry_calls($0)
- i32.ne $push2=, $pop1, $1
+ i32.const $push19=, 0
+ i32.load $push1=, entry_calls($pop19)
+ i32.const $push18=, 2
+ i32.ne $push2=, $pop1, $pop18
br_if $pop2, 0 # 0: down to label1
# BB#1: # %entry
- i32.load $push0=, exit_calls($0)
- i32.ne $push3=, $pop0, $1
+ i32.const $push21=, 0
+ i32.load $push0=, exit_calls($pop21)
+ i32.const $push20=, 2
+ i32.ne $push3=, $pop0, $pop20
br_if $pop3, 0 # 0: down to label1
# BB#2: # %if.end
- i32.const $1=, foo@FUNCTION
block
- i32.load $push4=, last_fn_entered($0)
- i32.ne $push5=, $pop4, $1
- br_if $pop5, 0 # 0: down to label2
+ i32.const $push22=, 0
+ i32.load $push4=, last_fn_entered($pop22)
+ i32.const $push5=, foo@FUNCTION
+ i32.ne $push6=, $pop4, $pop5
+ br_if $pop6, 0 # 0: down to label2
# BB#3: # %if.end4
block
- i32.load $push6=, last_fn_exited($0)
- i32.const $push7=, foo2@FUNCTION
- i32.ne $push8=, $pop6, $pop7
- br_if $pop8, 0 # 0: down to label3
+ i32.const $push23=, 0
+ i32.load $push7=, last_fn_exited($pop23)
+ i32.const $push8=, foo2@FUNCTION
+ i32.ne $push9=, $pop7, $pop8
+ br_if $pop9, 0 # 0: down to label3
# BB#4: # %if.end7
call foo@FUNCTION
- i32.const $2=, 3
block
- i32.load $push10=, entry_calls($0)
- i32.ne $push11=, $pop10, $2
- br_if $pop11, 0 # 0: down to label4
-# BB#5: # %if.end7
- i32.load $push9=, exit_calls($0)
- i32.ne $push12=, $pop9, $2
+ i32.const $push25=, 0
+ i32.load $push11=, entry_calls($pop25)
+ i32.const $push24=, 3
+ i32.ne $push12=, $pop11, $pop24
br_if $pop12, 0 # 0: down to label4
+# BB#5: # %if.end7
+ i32.const $push27=, 0
+ i32.load $push10=, exit_calls($pop27)
+ i32.const $push26=, 3
+ i32.ne $push13=, $pop10, $pop26
+ br_if $pop13, 0 # 0: down to label4
# BB#6: # %if.end12
block
- i32.load $push13=, last_fn_entered($0)
- i32.ne $push14=, $pop13, $1
- br_if $pop14, 0 # 0: down to label5
+ i32.const $push29=, 0
+ i32.load $push14=, last_fn_entered($pop29)
+ i32.const $push28=, foo@FUNCTION
+ i32.ne $push15=, $pop14, $pop28
+ br_if $pop15, 0 # 0: down to label5
# BB#7: # %if.end15
block
- i32.load $push15=, last_fn_exited($0)
- i32.ne $push16=, $pop15, $1
- br_if $pop16, 0 # 0: down to label6
+ i32.const $push31=, 0
+ i32.load $push16=, last_fn_exited($pop31)
+ i32.const $push30=, foo@FUNCTION
+ i32.ne $push17=, $pop16, $pop30
+ br_if $pop17, 0 # 0: down to label6
# BB#8: # %if.end18
return
.LBB1_9: # %if.then17
@@ -108,55 +118,66 @@ nfoo: # @nfoo
.type main,@function
main: # @main
.result i32
- .local i32, i32, i32
# BB#0: # %entry
- i32.const $0=, 0
block
- i32.load $push1=, exit_calls($0)
- i32.load $push0=, entry_calls($0)
+ i32.const $push21=, 0
+ i32.load $push1=, exit_calls($pop21)
+ i32.const $push20=, 0
+ i32.load $push0=, entry_calls($pop20)
i32.or $push2=, $pop1, $pop0
br_if $pop2, 0 # 0: down to label7
# BB#1: # %if.end
call foo2@FUNCTION
- i32.const $1=, 2
block
- i32.load $push4=, entry_calls($0)
- i32.ne $push5=, $pop4, $1
+ i32.const $push23=, 0
+ i32.load $push4=, entry_calls($pop23)
+ i32.const $push22=, 2
+ i32.ne $push5=, $pop4, $pop22
br_if $pop5, 0 # 0: down to label8
# BB#2: # %if.end
- i32.load $push3=, exit_calls($0)
- i32.ne $push6=, $pop3, $1
+ i32.const $push25=, 0
+ i32.load $push3=, exit_calls($pop25)
+ i32.const $push24=, 2
+ i32.ne $push6=, $pop3, $pop24
br_if $pop6, 0 # 0: down to label8
# BB#3: # %if.end6
- i32.const $1=, foo@FUNCTION
block
- i32.load $push7=, last_fn_entered($0)
- i32.ne $push8=, $pop7, $1
- br_if $pop8, 0 # 0: down to label9
+ i32.const $push26=, 0
+ i32.load $push7=, last_fn_entered($pop26)
+ i32.const $push8=, foo@FUNCTION
+ i32.ne $push9=, $pop7, $pop8
+ br_if $pop9, 0 # 0: down to label9
# BB#4: # %if.end9
block
- i32.load $push9=, last_fn_exited($0)
- i32.const $push10=, foo2@FUNCTION
- i32.ne $push11=, $pop9, $pop10
- br_if $pop11, 0 # 0: down to label10
+ i32.const $push27=, 0
+ i32.load $push10=, last_fn_exited($pop27)
+ i32.const $push11=, foo2@FUNCTION
+ i32.ne $push12=, $pop10, $pop11
+ br_if $pop12, 0 # 0: down to label10
# BB#5: # %if.end12
call nfoo@FUNCTION
- i32.const $2=, 3
block
- i32.load $push13=, entry_calls($0)
- i32.ne $push14=, $pop13, $2
- br_if $pop14, 0 # 0: down to label11
-# BB#6: # %if.end12
- i32.load $push12=, exit_calls($0)
- i32.ne $push15=, $pop12, $2
+ i32.const $push29=, 0
+ i32.load $push14=, entry_calls($pop29)
+ i32.const $push28=, 3
+ i32.ne $push15=, $pop14, $pop28
br_if $pop15, 0 # 0: down to label11
+# BB#6: # %if.end12
+ i32.const $push31=, 0
+ i32.load $push13=, exit_calls($pop31)
+ i32.const $push30=, 3
+ i32.ne $push16=, $pop13, $pop30
+ br_if $pop16, 0 # 0: down to label11
# BB#7: # %if.end17
block
- i32.load $push16=, last_fn_entered($0)
- i32.ne $push17=, $pop16, $1
- br_if $pop17, 0 # 0: down to label12
+ i32.const $push32=, 0
+ i32.load $push17=, last_fn_entered($pop32)
+ i32.const $push18=, foo@FUNCTION
+ i32.ne $push19=, $pop17, $pop18
+ br_if $pop19, 0 # 0: down to label12
# BB#8: # %if.end20
- return $0
+ i32.const $push33=, 0
+ return $pop33
.LBB2_9: # %if.then19
end_block # label12:
call abort@FUNCTION
@@ -191,14 +212,15 @@ main: # @main
.type __cyg_profile_func_enter,@function
__cyg_profile_func_enter: # @__cyg_profile_func_enter
.param i32, i32
- .local i32
# BB#0: # %entry
- i32.const $2=, 0
- i32.load $push0=, entry_calls($2)
- i32.const $push1=, 1
- i32.add $push2=, $pop0, $pop1
- i32.store $discard=, entry_calls($2), $pop2
- i32.store $discard=, last_fn_entered($2), $0
+ i32.const $push0=, 0
+ i32.const $push5=, 0
+ i32.load $push1=, entry_calls($pop5)
+ i32.const $push2=, 1
+ i32.add $push3=, $pop1, $pop2
+ i32.store $discard=, entry_calls($pop0), $pop3
+ i32.const $push4=, 0
+ i32.store $discard=, last_fn_entered($pop4), $0
return
.endfunc
.Lfunc_end3:
@@ -210,14 +232,15 @@ __cyg_profile_func_enter: # @__cyg_profile_func_enter
.type __cyg_profile_func_exit,@function
__cyg_profile_func_exit: # @__cyg_profile_func_exit
.param i32, i32
- .local i32
# BB#0: # %entry
- i32.const $2=, 0
- i32.load $push0=, exit_calls($2)
- i32.const $push1=, 1
- i32.add $push2=, $pop0, $pop1
- i32.store $discard=, exit_calls($2), $pop2
- i32.store $discard=, last_fn_exited($2), $0
+ i32.const $push0=, 0
+ i32.const $push5=, 0
+ i32.load $push1=, exit_calls($pop5)
+ i32.const $push2=, 1
+ i32.add $push3=, $pop1, $pop2
+ i32.store $discard=, exit_calls($pop0), $pop3
+ i32.const $push4=, 0
+ i32.store $discard=, last_fn_exited($pop4), $0
return
.endfunc
.Lfunc_end4:
@@ -226,45 +249,52 @@ __cyg_profile_func_exit: # @__cyg_profile_func_exit
.section .text.foo2,"ax",@progbits
.type foo2,@function
foo2: # @foo2
- .local i32, i32
# BB#0: # %entry
- i32.const $0=, 0
- i32.const $1=, 1
block
- i32.load $push1=, entry_calls($0)
- i32.ne $push2=, $pop1, $1
- br_if $pop2, 0 # 0: down to label13
+ i32.const $push17=, 0
+ i32.load $push1=, entry_calls($pop17)
+ i32.const $push2=, 1
+ i32.ne $push3=, $pop1, $pop2
+ br_if $pop3, 0 # 0: down to label13
# BB#1: # %entry
- i32.load $push0=, exit_calls($0)
+ i32.const $push18=, 0
+ i32.load $push0=, exit_calls($pop18)
br_if $pop0, 0 # 0: down to label13
# BB#2: # %if.end
block
- i32.load $push3=, last_fn_entered($0)
- i32.const $push4=, foo2@FUNCTION
- i32.ne $push5=, $pop3, $pop4
- br_if $pop5, 0 # 0: down to label14
+ i32.const $push19=, 0
+ i32.load $push4=, last_fn_entered($pop19)
+ i32.const $push5=, foo2@FUNCTION
+ i32.ne $push6=, $pop4, $pop5
+ br_if $pop6, 0 # 0: down to label14
# BB#3: # %if.end4
call foo@FUNCTION
block
- i32.load $push7=, entry_calls($0)
- i32.const $push8=, 2
- i32.ne $push9=, $pop7, $pop8
- br_if $pop9, 0 # 0: down to label15
-# BB#4: # %if.end4
- i32.load $push6=, exit_calls($0)
- i32.ne $push10=, $pop6, $1
+ i32.const $push20=, 0
+ i32.load $push8=, entry_calls($pop20)
+ i32.const $push9=, 2
+ i32.ne $push10=, $pop8, $pop9
br_if $pop10, 0 # 0: down to label15
+# BB#4: # %if.end4
+ i32.const $push21=, 0
+ i32.load $push7=, exit_calls($pop21)
+ i32.const $push11=, 1
+ i32.ne $push12=, $pop7, $pop11
+ br_if $pop12, 0 # 0: down to label15
# BB#5: # %if.end9
- i32.const $1=, foo@FUNCTION
block
- i32.load $push11=, last_fn_entered($0)
- i32.ne $push12=, $pop11, $1
- br_if $pop12, 0 # 0: down to label16
+ i32.const $push23=, 0
+ i32.load $push13=, last_fn_entered($pop23)
+ i32.const $push22=, foo@FUNCTION
+ i32.ne $push14=, $pop13, $pop22
+ br_if $pop14, 0 # 0: down to label16
# BB#6: # %if.end12
block
- i32.load $push13=, last_fn_exited($0)
- i32.ne $push14=, $pop13, $1
- br_if $pop14, 0 # 0: down to label17
+ i32.const $push25=, 0
+ i32.load $push15=, last_fn_exited($pop25)
+ i32.const $push24=, foo@FUNCTION
+ i32.ne $push16=, $pop15, $pop24
+ br_if $pop16, 0 # 0: down to label17
# BB#7: # %if.end15
return
.LBB5_8: # %if.then14
@@ -295,7 +325,7 @@ foo2: # @foo2
.type last_fn_entered,@object
.section .bss.last_fn_entered,"aw",@nobits
.globl last_fn_entered
- .align 2
+ .p2align 2
last_fn_entered:
.int32 0
.size last_fn_entered, 4
@@ -304,7 +334,7 @@ last_fn_entered:
.type entry_calls,@object
.section .bss.entry_calls,"aw",@nobits
.globl entry_calls
- .align 2
+ .p2align 2
entry_calls:
.int32 0 # 0x0
.size entry_calls, 4
@@ -313,7 +343,7 @@ entry_calls:
.type exit_calls,@object
.section .bss.exit_calls,"aw",@nobits
.globl exit_calls
- .align 2
+ .p2align 2
exit_calls:
.int32 0 # 0x0
.size exit_calls, 4
@@ -322,7 +352,7 @@ exit_calls:
.type last_fn_exited,@object
.section .bss.last_fn_exited,"aw",@nobits
.globl last_fn_exited
- .align 2
+ .p2align 2
last_fn_exited:
.int32 0
.size last_fn_exited, 4