summaryrefslogtreecommitdiff
path: root/test/torture-s/pr39233.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr39233.c.s')
-rw-r--r--test/torture-s/pr39233.c.s50
1 files changed, 50 insertions, 0 deletions
diff --git a/test/torture-s/pr39233.c.s b/test/torture-s/pr39233.c.s
new file mode 100644
index 000000000..f4b14381d
--- /dev/null
+++ b/test/torture-s/pr39233.c.s
@@ -0,0 +1,50 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr39233.c"
+ .globl foo
+ .type foo,@function
+foo: # @foo
+ .param i32
+# BB#0: # %entry
+ block BB0_3
+ i32.const $push0=, 0
+ i32.lt_s $push1=, $0, $pop0
+ br_if $pop1, BB0_3
+# BB#1: # %entry
+ i32.const $push2=, 7
+ i32.ge_s $push3=, $0, $pop2
+ br_if $pop3, BB0_3
+# BB#2: # %if.end
+ return
+BB0_3: # %if.then
+ call abort
+ unreachable
+func_end0:
+ .size foo, func_end0-foo
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32
+# BB#0: # %entry
+ i32.const $push0=, 6
+ call foo, $pop0
+ i32.const $push1=, 5
+ call foo, $pop1
+ i32.const $push2=, 4
+ call foo, $pop2
+ i32.const $push3=, 3
+ call foo, $pop3
+ i32.const $push4=, 2
+ call foo, $pop4
+ i32.const $push5=, 1
+ call foo, $pop5
+ i32.const $0=, 0
+ call foo, $0
+ return $0
+func_end1:
+ .size main, func_end1-main
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits