summaryrefslogtreecommitdiff
path: root/test/torture-s/20100827-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20100827-1.c.s')
-rw-r--r--test/torture-s/20100827-1.c.s67
1 files changed, 67 insertions, 0 deletions
diff --git a/test/torture-s/20100827-1.c.s b/test/torture-s/20100827-1.c.s
new file mode 100644
index 000000000..f4944c936
--- /dev/null
+++ b/test/torture-s/20100827-1.c.s
@@ -0,0 +1,67 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/20100827-1.c"
+ .globl foo
+ .type foo,@function
+foo: # @foo
+ .param i32
+ .result i32
+ .local i32, i32, i32
+# BB#0: # %entry
+ i32.const $3=, 0
+ block BB0_4
+ i32.load8_u $push0=, 0($0)
+ i32.const $push3=, 0
+ i32.eq $push4=, $pop0, $pop3
+ br_if $pop4, BB0_4
+BB0_1: # %if.end
+ # =>This Inner Loop Header: Depth=1
+ loop BB0_3
+ i32.add $1=, $0, $3
+ i32.const $push5=, 0
+ i32.eq $push6=, $1, $pop5
+ br_if $pop6, BB0_3
+# BB#2: # %if.end5
+ # in Loop: Header=BB0_1 Depth=1
+ i32.const $2=, 1
+ i32.add $3=, $3, $2
+ i32.add $push1=, $1, $2
+ i32.load8_u $push2=, 0($pop1)
+ br_if $pop2, BB0_1
+ br BB0_4
+BB0_3: # %if.then4
+ call abort
+ unreachable
+BB0_4: # %do.end
+ return $3
+func_end0:
+ .size foo, func_end0-foo
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+# BB#0: # %entry
+ block BB1_2
+ i32.const $push0=, .str
+ i32.call $push1=, foo, $pop0
+ i32.const $push2=, 1
+ i32.ne $push3=, $pop1, $pop2
+ br_if $pop3, BB1_2
+# BB#1: # %if.end
+ i32.const $push4=, 0
+ return $pop4
+BB1_2: # %if.then
+ call abort
+ unreachable
+func_end1:
+ .size main, func_end1-main
+
+ .type .str,@object # @.str
+ .section .rodata.str1.1,"aMS",@progbits,1
+.str:
+ .asciz "a"
+ .size .str, 2
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits