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