summaryrefslogtreecommitdiff
path: root/test/torture-s/pending-4.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pending-4.c.s')
-rw-r--r--test/torture-s/pending-4.c.s69
1 files changed, 69 insertions, 0 deletions
diff --git a/test/torture-s/pending-4.c.s b/test/torture-s/pending-4.c.s
new file mode 100644
index 000000000..4e151893f
--- /dev/null
+++ b/test/torture-s/pending-4.c.s
@@ -0,0 +1,69 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/pending-4.c"
+ .globl dummy
+ .type dummy,@function
+dummy: # @dummy
+ .param i32, i32
+# BB#0: # %entry
+ return
+func_end0:
+ .size dummy, func_end0-dummy
+
+ .globl main
+ .type main,@function
+main: # @main
+ .param i32, i32
+ .result i32
+ .local i32, i32, i32, i32
+# BB#0: # %entry
+ i32.const $2=, 0
+ i32.const $5=, 8
+ copy_local $3=, $2
+BB1_1: # %for.cond
+ # =>This Inner Loop Header: Depth=1
+ loop BB1_10
+ i32.const $4=, 1
+ block BB1_9
+ block BB1_8
+ i32.eq $push0=, $5, $4
+ br_if $pop0, BB1_8
+# BB#2: # %for.cond
+ # in Loop: Header=BB1_1 Depth=1
+ block BB1_4
+ i32.const $push6=, 0
+ i32.eq $push7=, $5, $pop6
+ br_if $pop7, BB1_4
+# BB#3: # %if.else
+ # in Loop: Header=BB1_1 Depth=1
+ i32.add $3=, $3, $4
+ br BB1_9
+BB1_4: # %for.end
+ block BB1_7
+ i32.ne $push1=, $2, $4
+ br_if $pop1, BB1_7
+# BB#5: # %for.end
+ i32.const $push2=, 7
+ i32.ne $push3=, $3, $pop2
+ br_if $pop3, BB1_7
+# BB#6: # %if.end7
+ i32.const $push4=, 0
+ call exit, $pop4
+ unreachable
+BB1_7: # %if.then6
+ call abort
+ unreachable
+BB1_8: # %if.then
+ # in Loop: Header=BB1_1 Depth=1
+ i32.add $2=, $2, $4
+BB1_9: # %for.inc
+ # in Loop: Header=BB1_1 Depth=1
+ i32.const $push5=, -1
+ i32.add $5=, $5, $pop5
+ br BB1_1
+BB1_10:
+func_end1:
+ .size main, func_end1-main
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits