forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
920909-1.c.s
59 lines (55 loc) · 1.61 KB
/
920909-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
.text
.file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/920909-1.c"
.section .text.f,"ax",@progbits
.hidden f
.globl f
.type f,@function
f: # @f
.param i32
.result i32
# BB#0: # %entry
block
i32.const $push0=, -1026
i32.add $push8=, $0, $pop0
tee_local $push7=, $0=, $pop8
i32.const $push1=, 5
i32.gt_u $push2=, $pop7, $pop1
br_if 0, $pop2 # 0: down to label0
# BB#1: # %switch.lookup
i32.const $push4=, 2
i32.shl $push5=, $0, $pop4
i32.load $push6=, .Lswitch.table($pop5)
return $pop6
.LBB0_2: # %return
end_block # label0:
i32.const $push3=, 0
# fallthrough-return: $pop3
.endfunc
.Lfunc_end0:
.size f, .Lfunc_end0-f
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
# BB#0: # %if.end
i32.const $push0=, 0
call exit@FUNCTION, $pop0
unreachable
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.type .Lswitch.table,@object # @switch.table
.section .rodata..Lswitch.table,"a",@progbits
.p2align 4
.Lswitch.table:
.int32 1027 # 0x403
.int32 1029 # 0x405
.int32 1031 # 0x407
.int32 1033 # 0x409
.int32 1 # 0x1
.int32 4 # 0x4
.size .Lswitch.table, 24
.ident "clang version 3.9.0 "
.functype exit, void, i32