summaryrefslogtreecommitdiff
path: root/test/torture-s/20020402-3.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20020402-3.c.s')
-rw-r--r--test/torture-s/20020402-3.c.s86
1 files changed, 86 insertions, 0 deletions
diff --git a/test/torture-s/20020402-3.c.s b/test/torture-s/20020402-3.c.s
new file mode 100644
index 000000000..40232d618
--- /dev/null
+++ b/test/torture-s/20020402-3.c.s
@@ -0,0 +1,86 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/20020402-3.c"
+ .globl blockvector_for_pc_sect
+ .type blockvector_for_pc_sect,@function
+blockvector_for_pc_sect: # @blockvector_for_pc_sect
+ .param i64, i32
+ .result i32
+ .local i32, i32, i32, i32, i32, i32, i32
+# BB#0: # %entry
+ i32.load $2=, 0($1)
+ i32.load $1=, 0($2)
+ i32.const $4=, 1
+ i32.const $8=, 0
+ copy_local $7=, $1
+ block BB0_6
+ block BB0_3
+ i32.le_s $push0=, $1, $4
+ br_if $pop0, BB0_3
+BB0_1: # %while.body
+ # =>This Inner Loop Header: Depth=1
+ loop BB0_2
+ i32.add $push1=, $1, $4
+ i32.shr_s $5=, $pop1, $4
+ i32.add $1=, $5, $8
+ i32.const $push2=, 2
+ i32.shl $push3=, $1, $pop2
+ i32.add $push4=, $2, $pop3
+ i32.const $push5=, 4
+ i32.add $push6=, $pop4, $pop5
+ i32.load $push7=, 0($pop6)
+ i64.load $push8=, 0($pop7)
+ i64.gt_u $6=, $pop8, $0
+ i32.select $8=, $6, $8, $1
+ i32.select $3=, $6, $1, $7
+ i32.sub $push9=, $7, $1
+ i32.select $1=, $6, $5, $pop9
+ copy_local $7=, $3
+ i32.gt_s $push10=, $1, $4
+ br_if $pop10, BB0_1
+BB0_2: # %while.cond8.preheader
+ i32.const $7=, 0
+ i32.const $push11=, -1
+ i32.le_s $push12=, $8, $pop11
+ br_if $pop12, BB0_6
+BB0_3: # %while.body10.preheader
+ i32.const $push13=, 2
+ i32.shl $push14=, $8, $pop13
+ i32.add $push15=, $pop14, $2
+ i32.const $push16=, 4
+ i32.add $1=, $pop15, $pop16
+ i32.add $6=, $8, $4
+BB0_4: # %while.body10
+ # =>This Inner Loop Header: Depth=1
+ loop BB0_6
+ copy_local $7=, $2
+ i32.load $push17=, 0($1)
+ i64.load $push18=, 8($pop17)
+ i64.gt_u $push19=, $pop18, $0
+ br_if $pop19, BB0_6
+# BB#5: # %while.cond8
+ # in Loop: Header=BB0_4 Depth=1
+ i32.const $push20=, -1
+ i32.add $6=, $6, $pop20
+ i32.const $push21=, -4
+ i32.add $1=, $1, $pop21
+ i32.const $7=, 0
+ i32.ge_s $push22=, $6, $4
+ br_if $pop22, BB0_4
+BB0_6: # %cleanup
+ return $7
+func_end0:
+ .size blockvector_for_pc_sect, func_end0-blockvector_for_pc_sect
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+# BB#0: # %entry
+ i32.const $push0=, 0
+ return $pop0
+func_end1:
+ .size main, func_end1-main
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits