]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/pr48814-1.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / pr48814-1.c.s
1 .text
2 .file "pr48814-1.c"
3 .section .text.incr,"ax",@progbits
4 .hidden incr # -- Begin function incr
5 .globl incr
6 .type incr,@function
7 incr: # @incr
8 .result i32
9 .local i32
10 # BB#0: # %entry
11 i32.const $push0=, 0
12 i32.const $push5=, 0
13 i32.load $push1=, count($pop5)
14 i32.const $push2=, 1
15 i32.add $push4=, $pop1, $pop2
16 tee_local $push3=, $0=, $pop4
17 i32.store count($pop0), $pop3
18 copy_local $push6=, $0
19 # fallthrough-return: $pop6
20 .endfunc
21 .Lfunc_end0:
22 .size incr, .Lfunc_end0-incr
23 # -- End function
24 .section .text.main,"ax",@progbits
25 .hidden main # -- Begin function main
26 .globl main
27 .type main,@function
28 main: # @main
29 .result i32
30 .local i32, i32
31 # BB#0: # %entry
32 i32.call $0=, incr@FUNCTION
33 i32.const $push16=, 0
34 i32.load $push15=, count($pop16)
35 tee_local $push14=, $1=, $pop15
36 i32.const $push1=, 2
37 i32.shl $push2=, $pop14, $pop1
38 i32.const $push3=, arr
39 i32.add $push4=, $pop2, $pop3
40 i32.store 0($pop4), $0
41 i32.const $push13=, 0
42 i32.const $push5=, 1
43 i32.add $push12=, $1, $pop5
44 tee_local $push11=, $0=, $pop12
45 i32.store count($pop13), $pop11
46 block
47 i32.const $push10=, 2
48 i32.ne $push6=, $0, $pop10
49 br_if 0, $pop6 # 0: down to label0
50 # BB#1: # %entry
51 i32.const $push17=, 0
52 i32.load $push0=, arr+8($pop17)
53 i32.const $push7=, 3
54 i32.ne $push8=, $pop0, $pop7
55 br_if 0, $pop8 # 0: down to label0
56 # BB#2: # %if.end
57 i32.const $push9=, 0
58 return $pop9
59 .LBB1_3: # %if.then
60 end_block # label0:
61 call abort@FUNCTION
62 unreachable
63 .endfunc
64 .Lfunc_end1:
65 .size main, .Lfunc_end1-main
66 # -- End function
67 .hidden arr # @arr
68 .type arr,@object
69 .section .data.arr,"aw",@progbits
70 .globl arr
71 .p2align 4
72 arr:
73 .int32 1 # 0x1
74 .int32 2 # 0x2
75 .int32 3 # 0x3
76 .int32 4 # 0x4
77 .size arr, 16
78
79 .hidden count # @count
80 .type count,@object
81 .section .bss.count,"aw",@nobits
82 .globl count
83 .p2align 2
84 count:
85 .int32 0 # 0x0
86 .size count, 4
87
88
89 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
90 .functype abort, void