forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
960301-1.c.s
82 lines (77 loc) · 2 KB
/
960301-1.c.s
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
.text
.file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/960301-1.c"
.section .text.bar,"ax",@progbits
.hidden bar
.globl bar
.type bar,@function
bar: # @bar
.param i32
.result i32
.local i32
# BB#0: # %entry
i32.const $push0=, 0
i32.const $push14=, 0
i32.load16_u $push13=, foo($pop14)
tee_local $push12=, $1=, $pop13
i32.const $push1=, 12
i32.shr_u $push2=, $pop12, $pop1
i32.store $drop=, oldfoo($pop0), $pop2
i32.const $push11=, 0
i32.const $push4=, 4095
i32.and $push5=, $1, $pop4
i32.const $push10=, 12
i32.shl $push3=, $0, $pop10
i32.or $push6=, $pop5, $pop3
i32.store16 $drop=, foo($pop11), $pop6
i32.const $push8=, 1
i32.const $push7=, 2
i32.select $push9=, $pop8, $pop7, $0
# fallthrough-return: $pop9
.endfunc
.Lfunc_end0:
.size bar, .Lfunc_end0-bar
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32
# BB#0: # %if.end
i32.const $push0=, 0
i32.const $push11=, 0
i32.load16_u $push10=, foo($pop11)
tee_local $push9=, $0=, $pop10
i32.const $push1=, 12
i32.shr_u $push2=, $pop9, $pop1
i32.store $drop=, oldfoo($pop0), $pop2
i32.const $push8=, 0
i32.const $push3=, 4095
i32.and $push4=, $0, $pop3
i32.const $push5=, 4096
i32.or $push6=, $pop4, $pop5
i32.store16 $drop=, foo($pop8), $pop6
i32.const $push7=, 0
call exit@FUNCTION, $pop7
unreachable
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.hidden foo # @foo
.type foo,@object
.section .bss.foo,"aw",@nobits
.globl foo
.p2align 2
foo:
.skip 4
.size foo, 4
.hidden oldfoo # @oldfoo
.type oldfoo,@object
.section .bss.oldfoo,"aw",@nobits
.globl oldfoo
.p2align 2
oldfoo:
.int32 0 # 0x0
.size oldfoo, 4
.ident "clang version 3.9.0 "
.functype exit, void, i32