blob: 43cd9bd8b747aa6213a1c92508e9b02349aa756a [file] [edit]
.text
.file "/usr/local/google/home/dschuff/s/wasm-waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr35800.c"
.section .text.stab_xcoff_builtin_type,"ax",@progbits
.hidden stab_xcoff_builtin_type
.globl stab_xcoff_builtin_type
.type stab_xcoff_builtin_type,@function
stab_xcoff_builtin_type: # @stab_xcoff_builtin_type
.param i32
.result i32
.local i32
# BB#0: # %entry
i32.const $1=, 0
block
i32.const $push0=, -34
i32.lt_u $push1=, $0, $pop0
br_if 0, $pop1 # 0: down to label0
# BB#1: # %if.end
i32.const $1=, .L.str
block
i32.const $push2=, -2
i32.sub $push10=, $pop2, $0
tee_local $push9=, $0=, $pop10
i32.const $push3=, 32
i32.gt_u $push4=, $pop9, $pop3
br_if 0, $pop4 # 0: down to label1
# BB#2: # %switch.lookup
i32.const $push5=, 2
i32.shl $push6=, $0, $pop5
i32.const $push7=, .Lswitch.table
i32.add $push8=, $pop6, $pop7
i32.load $1=, 0($pop8)
.LBB0_3: # %sw.epilog
end_block # label1:
i32.load8_s $1=, 0($1)
.LBB0_4: # %cleanup
end_block # label0:
copy_local $push11=, $1
# fallthrough-return: $pop11
.endfunc
.Lfunc_end0:
.size stab_xcoff_builtin_type, .Lfunc_end0-stab_xcoff_builtin_type
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32, i32
# BB#0: # %if.end8
i32.const $1=, -4
i32.const $0=, .Lswitch.table+8
.LBB1_1: # %stab_xcoff_builtin_type.exit
# =>This Inner Loop Header: Depth=1
block
loop # label3:
i32.load $push0=, 0($0)
i32.load8_u $push1=, 0($pop0)
i32.const $push5=, 105
i32.ne $push2=, $pop1, $pop5
br_if 1, $pop2 # 1: down to label2
# BB#2: # %for.cond
# in Loop: Header=BB1_1 Depth=1
i32.const $push10=, 4
i32.add $0=, $0, $pop10
i32.const $push9=, -1
i32.add $push8=, $1, $pop9
tee_local $push7=, $1=, $pop8
i32.const $push6=, -34
i32.ge_s $push3=, $pop7, $pop6
br_if 0, $pop3 # 0: up to label3
# BB#3: # %if.end21
end_loop
i32.const $push4=, 0
return $pop4
.LBB1_4: # %if.then16
end_block # label2:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "int"
.size .L.str, 4
.type .L.str.2,@object # @.str.2
.L.str.2:
.asciz "short"
.size .L.str.2, 6
.type .L.str.33,@object # @.str.33
.L.str.33:
.asciz "integer*8"
.size .L.str.33, 10
.type .Lswitch.table,@object # @switch.table
.section .rodata..Lswitch.table,"a",@progbits
.p2align 4
.Lswitch.table:
.int32 .L.str.2
.int32 .L.str.2
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.int32 .L.str.33
.size .Lswitch.table, 132
.ident "clang version 4.0.0 (trunk 283460) (llvm/trunk 283507)"
.functype abort, void