summaryrefslogtreecommitdiff
path: root/test/torture-s/nestfunc-4.c.s
blob: fb0c3acb9724c98168285e02d519bcd3f814303f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
	.text
	.file	"/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/nestfunc-4.c"
	.section	.text.main,"ax",@progbits
	.hidden	main
	.globl	main
	.type	main,@function
main:                                   # @main
	.result 	i32
	.local  	i32
# BB#0:                                 # %if.then
	i32.const	$push0=, 0
	i32.load	$0=, level($pop0)
	i32.const	$push8=, 0
	i32.const	$push1=, 499
	i32.const	$push7=, 499
	i32.gt_s	$push2=, $0, $pop7
	i32.select	$push3=, $0, $pop1, $pop2
	i32.const	$push4=, 1
	i32.add 	$push5=, $pop3, $pop4
	i32.store	$discard=, level($pop8), $pop5
	i32.const	$push6=, 0
	call    	exit@FUNCTION, $pop6
	unreachable
	.endfunc
.Lfunc_end0:
	.size	main, .Lfunc_end0-main

	.section	.text.foo,"ax",@progbits
	.hidden	foo
	.globl	foo
	.type	foo,@function
foo:                                    # @foo
	.result 	i32
	.local  	i32
# BB#0:                                 # %entry
	i32.const	$push0=, 0
	i32.load	$0=, level($pop0)
	i32.const	$push8=, 0
	i32.const	$push1=, 499
	i32.const	$push7=, 499
	i32.gt_s	$push2=, $0, $pop7
	i32.select	$push3=, $0, $pop1, $pop2
	i32.const	$push4=, 1
	i32.add 	$push5=, $pop3, $pop4
	i32.store	$discard=, level($pop8), $pop5
	i32.const	$push6=, -42
	return  	$pop6
	.endfunc
.Lfunc_end1:
	.size	foo, .Lfunc_end1-foo

	.section	.text.bar,"ax",@progbits
	.hidden	bar
	.globl	bar
	.type	bar,@function
bar:                                    # @bar
	.result 	i32
	.local  	i32, i32
# BB#0:                                 # %entry
	i32.const	$0=, -42
	block
	i32.const	$push0=, 0
	i32.load	$push5=, level($pop0)
	tee_local	$push4=, $1=, $pop5
	i32.const	$push1=, 499
	i32.gt_s	$push2=, $pop4, $pop1
	br_if   	0, $pop2        # 0: down to label0
# BB#1:                                 # %cond.false
	i32.call	$0=, foo@FUNCTION
.LBB2_2:                                # %cond.end
	end_block                       # label0:
	i32.sub 	$push3=, $0, $1
	return  	$pop3
	.endfunc
.Lfunc_end2:
	.size	bar, .Lfunc_end2-bar

	.hidden	level                   # @level
	.type	level,@object
	.section	.bss.level,"aw",@nobits
	.globl	level
	.p2align	2
level:
	.int32	0                       # 0x0
	.size	level, 4


	.ident	"clang version 3.9.0 "