]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/20100827-1.c.s
New upstream version 1.25.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / 20100827-1.c.s
1 .text
2 .file "20100827-1.c"
3 .section .text.foo,"ax",@progbits
4 .hidden foo # -- Begin function foo
5 .globl foo
6 .type foo,@function
7 foo: # @foo
8 .param i32
9 .result i32
10 .local i32, i32
11 # BB#0: # %entry
12 block
13 block
14 i32.load8_u $push0=, 0($0)
15 i32.eqz $push8=, $pop0
16 br_if 0, $pop8 # 0: down to label1
17 # BB#1: # %if.end.preheader
18 i32.const $2=, 0
19 .LBB0_2: # %if.end
20 # =>This Inner Loop Header: Depth=1
21 loop # label2:
22 i32.add $push5=, $0, $2
23 tee_local $push4=, $1=, $pop5
24 i32.eqz $push9=, $pop4
25 br_if 2, $pop9 # 2: down to label0
26 # BB#3: # %if.end5
27 # in Loop: Header=BB0_2 Depth=1
28 i32.const $push7=, 1
29 i32.add $2=, $2, $pop7
30 i32.const $push6=, 1
31 i32.add $push1=, $1, $pop6
32 i32.load8_u $push2=, 0($pop1)
33 br_if 0, $pop2 # 0: up to label2
34 # BB#4: # %do.end
35 end_loop
36 return $2
37 .LBB0_5:
38 end_block # label1:
39 i32.const $push3=, 0
40 return $pop3
41 .LBB0_6: # %if.then4
42 end_block # label0:
43 call abort@FUNCTION
44 unreachable
45 .endfunc
46 .Lfunc_end0:
47 .size foo, .Lfunc_end0-foo
48 # -- End function
49 .section .text.main,"ax",@progbits
50 .hidden main # -- Begin function main
51 .globl main
52 .type main,@function
53 main: # @main
54 .result i32
55 # BB#0: # %entry
56 block
57 i32.const $push0=, .L.str
58 i32.call $push1=, foo@FUNCTION, $pop0
59 i32.const $push2=, 1
60 i32.ne $push3=, $pop1, $pop2
61 br_if 0, $pop3 # 0: down to label3
62 # BB#1: # %if.end
63 i32.const $push4=, 0
64 return $pop4
65 .LBB1_2: # %if.then
66 end_block # label3:
67 call abort@FUNCTION
68 unreachable
69 .endfunc
70 .Lfunc_end1:
71 .size main, .Lfunc_end1-main
72 # -- End function
73 .type .L.str,@object # @.str
74 .section .rodata.str1.1,"aMS",@progbits,1
75 .L.str:
76 .asciz "a"
77 .size .L.str, 2
78
79
80 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
81 .functype abort, void