summaryrefslogtreecommitdiff
path: root/test/torture-s/pr27260.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr27260.c.s')
-rw-r--r--test/torture-s/pr27260.c.s101
1 files changed, 101 insertions, 0 deletions
diff --git a/test/torture-s/pr27260.c.s b/test/torture-s/pr27260.c.s
new file mode 100644
index 000000000..47c47ce30
--- /dev/null
+++ b/test/torture-s/pr27260.c.s
@@ -0,0 +1,101 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr27260.c"
+ .globl foo
+ .type foo,@function
+foo: # @foo
+ .param i32
+# BB#0: # %entry
+ i32.const $push2=, buf
+ i32.const $push0=, 2
+ i32.ne $push1=, $0, $pop0
+ i32.const $push3=, 64
+ call memset, $pop2, $pop1, $pop3
+ return
+func_end0:
+ .size foo, func_end0-foo
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32, i32, i32, i32, i32, i32
+# BB#0: # %entry
+ i32.const $4=, 0
+ i32.const $push0=, 2
+ i32.store8 $discard=, buf+64($4), $pop0
+BB1_1: # %for.body
+ # =>This Inner Loop Header: Depth=1
+ block BB1_12
+ loop BB1_3
+ i32.const $0=, buf
+ i32.add $push1=, $0, $4
+ i32.load8_u $push2=, 0($pop1)
+ br_if $pop2, BB1_12
+# BB#2: # %for.cond
+ # in Loop: Header=BB1_1 Depth=1
+ i32.const $5=, 1
+ i32.add $4=, $4, $5
+ i32.const $1=, 63
+ i32.le_s $push3=, $4, $1
+ br_if $pop3, BB1_1
+BB1_3: # %for.end
+ i32.const $2=, 64
+ call memset, $0, $5, $2
+BB1_4: # %for.cond3
+ # =>This Inner Loop Header: Depth=1
+ block BB1_7
+ loop BB1_6
+ i32.gt_s $push4=, $5, $1
+ br_if $pop4, BB1_7
+# BB#5: # %for.cond3.for.body6_crit_edge
+ # in Loop: Header=BB1_4 Depth=1
+ i32.add $3=, $0, $5
+ i32.const $4=, 1
+ i32.add $5=, $5, $4
+ i32.load8_u $push8=, 0($3)
+ i32.eq $push9=, $pop8, $4
+ br_if $pop9, BB1_4
+BB1_6: # %if.then11
+ call abort
+ unreachable
+BB1_7: # %for.end15
+ i32.const $3=, 0
+ call memset, $0, $3, $2
+ i32.const $5=, 1
+BB1_8: # %for.cond16
+ # =>This Inner Loop Header: Depth=1
+ block BB1_11
+ loop BB1_10
+ i32.gt_s $push5=, $5, $1
+ br_if $pop5, BB1_11
+# BB#9: # %for.cond16.for.body19_crit_edge
+ # in Loop: Header=BB1_8 Depth=1
+ i32.add $4=, $0, $5
+ i32.const $push7=, 1
+ i32.add $5=, $5, $pop7
+ i32.load8_u $push6=, 0($4)
+ i32.const $push10=, 0
+ i32.eq $push11=, $pop6, $pop10
+ br_if $pop11, BB1_8
+BB1_10: # %if.then24
+ call abort
+ unreachable
+BB1_11: # %if.end33
+ return $3
+BB1_12: # %if.then
+ call abort
+ unreachable
+func_end1:
+ .size main, func_end1-main
+
+ .type buf,@object # @buf
+ .bss
+ .globl buf
+ .align 4
+buf:
+ .zero 65
+ .size buf, 65
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits