forked from WebAssembly/binaryen
/
20001108-1.c.s
57 lines (53 loc) · 1.63 KB
/
20001108-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
.text
.file "/usr/local/google/home/dschuff/s/wasm-waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/20001108-1.c"
.section .text.signed_poly,"ax",@progbits
.hidden signed_poly
.globl signed_poly
.type signed_poly,@function
signed_poly: # @signed_poly
.param i64, i32
.result i64
# BB#0: # %entry
i64.const $push0=, 32
i64.shl $push1=, $0, $pop0
i64.const $push6=, 32
i64.shr_s $push2=, $pop1, $pop6
i64.extend_s/i32 $push3=, $1
i64.mul $push4=, $pop2, $pop3
i64.add $push5=, $pop4, $0
# fallthrough-return: $pop5
.endfunc
.Lfunc_end0:
.size signed_poly, .Lfunc_end0-signed_poly
.section .text.unsigned_poly,"ax",@progbits
.hidden unsigned_poly
.globl unsigned_poly
.type unsigned_poly,@function
unsigned_poly: # @unsigned_poly
.param i64, i32
.result i64
# BB#0: # %entry
i64.extend_u/i32 $push2=, $1
i64.const $push0=, 4294967295
i64.and $push1=, $0, $pop0
i64.mul $push3=, $pop2, $pop1
i64.add $push4=, $pop3, $0
# fallthrough-return: $pop4
.endfunc
.Lfunc_end1:
.size unsigned_poly, .Lfunc_end1-unsigned_poly
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
# BB#0: # %if.end4
i32.const $push0=, 0
call exit@FUNCTION, $pop0
unreachable
.endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
.ident "clang version 4.0.0 (trunk 283460) (llvm/trunk 283507)"
.functype exit, void, i32