summaryrefslogtreecommitdiff
path: root/test/torture-s/20000224-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20000224-1.c.s')
-rw-r--r--test/torture-s/20000224-1.c.s103
1 files changed, 103 insertions, 0 deletions
diff --git a/test/torture-s/20000224-1.c.s b/test/torture-s/20000224-1.c.s
new file mode 100644
index 000000000..125a42a80
--- /dev/null
+++ b/test/torture-s/20000224-1.c.s
@@ -0,0 +1,103 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/20000224-1.c"
+ .globl test
+ .type test,@function
+test: # @test
+ .result i32
+ .local i32, i32, i32, i32, i32, i32, i32
+# BB#0: # %entry
+ i32.const $2=, 0
+ i32.load $0=, loop_1($2)
+ i32.const $3=, 1
+ block BB0_4
+ i32.lt_s $push0=, $0, $3
+ br_if $pop0, BB0_4
+# BB#1: # %while.body.lr.ph
+ i32.load $1=, loop_2($2)
+ i32.load $5=, flag($2)
+ copy_local $6=, $2
+BB0_2: # %while.body
+ # =>This Inner Loop Header: Depth=1
+ loop BB0_3
+ i32.const $4=, 31
+ i32.shl $push2=, $5, $4
+ i32.shr_s $push3=, $pop2, $4
+ i32.lt_s $push1=, $1, $3
+ i32.select $push4=, $pop1, $2, $1
+ i32.and $push5=, $pop3, $pop4
+ i32.add $6=, $6, $pop5
+ i32.add $5=, $5, $3
+ i32.gt_s $push6=, $0, $6
+ br_if $pop6, BB0_2
+BB0_3: # %while.cond.while.end_crit_edge
+ i32.const $push7=, 0
+ i32.store $discard=, flag($pop7), $5
+BB0_4: # %while.end
+ return $3
+func_end0:
+ .size test, func_end0-test
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32, i32, i32, i32, i32, i32, i32
+# BB#0: # %entry
+ i32.const $2=, 0
+ i32.load $0=, loop_1($2)
+ i32.const $3=, 1
+ block BB1_4
+ i32.lt_s $push0=, $0, $3
+ br_if $pop0, BB1_4
+# BB#1: # %while.body.lr.ph.i
+ i32.load $1=, loop_2($2)
+ i32.load $5=, flag($2)
+ copy_local $6=, $2
+BB1_2: # %while.body.i
+ # =>This Inner Loop Header: Depth=1
+ loop BB1_3
+ i32.const $4=, 31
+ i32.lt_s $push1=, $1, $3
+ i32.shl $push2=, $5, $4
+ i32.shr_s $push3=, $pop2, $4
+ i32.and $push4=, $pop3, $1
+ i32.select $push5=, $pop1, $2, $pop4
+ i32.add $6=, $pop5, $6
+ i32.add $5=, $5, $3
+ i32.gt_s $push6=, $0, $6
+ br_if $pop6, BB1_2
+BB1_3: # %while.cond.while.end_crit_edge.i
+ i32.const $push7=, 0
+ i32.store $discard=, flag($pop7), $5
+BB1_4: # %test.exit
+ call exit, $2
+ unreachable
+func_end1:
+ .size main, func_end1-main
+
+ .type loop_1,@object # @loop_1
+ .data
+ .globl loop_1
+ .align 2
+loop_1:
+ .int32 100 # 0x64
+ .size loop_1, 4
+
+ .type loop_2,@object # @loop_2
+ .globl loop_2
+ .align 2
+loop_2:
+ .int32 7 # 0x7
+ .size loop_2, 4
+
+ .type flag,@object # @flag
+ .bss
+ .globl flag
+ .align 2
+flag:
+ .int32 0 # 0x0
+ .size flag, 4
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits