summaryrefslogtreecommitdiff
path: root/test/torture-s/20061101-2.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20061101-2.c.s')
-rw-r--r--test/torture-s/20061101-2.c.s72
1 files changed, 72 insertions, 0 deletions
diff --git a/test/torture-s/20061101-2.c.s b/test/torture-s/20061101-2.c.s
new file mode 100644
index 000000000..7bd213a31
--- /dev/null
+++ b/test/torture-s/20061101-2.c.s
@@ -0,0 +1,72 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/20061101-2.c"
+ .globl tar
+ .type tar,@function
+tar: # @tar
+ .param i32
+ .result i32
+# BB#0: # %entry
+ block BB0_2
+ i32.const $push0=, 36863
+ i32.ne $push1=, $0, $pop0
+ br_if $pop1, BB0_2
+# BB#1: # %if.end
+ i32.const $push2=, -1
+ return $pop2
+BB0_2: # %if.then
+ call abort
+ unreachable
+func_end0:
+ .size tar, func_end0-tar
+
+ .globl bug
+ .type bug,@function
+bug: # @bug
+ .param i32, i32
+ .local i32, i32, i32
+# BB#0: # %entry
+ i32.const $push0=, -1
+ i32.add $2=, $0, $pop0
+ i32.const $3=, 1
+ i32.const $0=, 0
+ copy_local $4=, $3
+BB1_1: # %while.cond
+ # =>This Inner Loop Header: Depth=1
+ block BB1_4
+ loop BB1_3
+ i32.and $push1=, $4, $3
+ i32.const $push8=, 0
+ i32.eq $push9=, $pop1, $pop8
+ br_if $pop9, BB1_4
+# BB#2: # %while.body
+ # in Loop: Header=BB1_1 Depth=1
+ i32.lt_s $push4=, $0, $2
+ i32.const $push2=, 1
+ i32.add $push3=, $0, $pop2
+ i32.select $0=, $pop4, $pop3, $2
+ i32.const $4=, 0
+ i32.mul $push5=, $0, $1
+ i32.const $push6=, 36863
+ i32.eq $push7=, $pop5, $pop6
+ br_if $pop7, BB1_1
+BB1_3: # %if.then.i
+ call abort
+ unreachable
+BB1_4: # %while.end
+ return
+func_end1:
+ .size bug, func_end1-bug
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+# BB#0: # %bug.exit
+ i32.const $push0=, 0
+ return $pop0
+func_end2:
+ .size main, func_end2-main
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits