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