summaryrefslogtreecommitdiff
path: root/test/torture-s/20021120-3.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20021120-3.c.s')
-rw-r--r--test/torture-s/20021120-3.c.s88
1 files changed, 88 insertions, 0 deletions
diff --git a/test/torture-s/20021120-3.c.s b/test/torture-s/20021120-3.c.s
new file mode 100644
index 000000000..12638f9cc
--- /dev/null
+++ b/test/torture-s/20021120-3.c.s
@@ -0,0 +1,88 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/20021120-3.c"
+ .globl foo
+ .type foo,@function
+foo: # @foo
+ .param i32, i32, i32
+ .result i32
+ .local i32, i32, i32, i32, i32, i32, i32, i32, i32
+# BB#0: # %entry
+ i32.const $8=, __stack_pointer
+ i32.load $8=, 0($8)
+ i32.const $9=, 16
+ i32.sub $8=, $8, $9
+ i32.const $9=, __stack_pointer
+ i32.store $8=, 0($9), $8
+ i32.div_u $3=, $1, $2
+ i32.const $4=, __stack_pointer
+ i32.load $4=, 0($4)
+ i32.const $5=, 4
+ i32.sub $8=, $4, $5
+ i32.const $5=, __stack_pointer
+ i32.store $8=, 0($5), $8
+ i32.store $discard=, 0($8), $3
+ i32.const $push0=, .str
+ i32.call $discard=, siprintf, $0, $pop0
+ i32.const $6=, __stack_pointer
+ i32.load $6=, 0($6)
+ i32.const $7=, 4
+ i32.add $8=, $6, $7
+ i32.const $7=, __stack_pointer
+ i32.store $8=, 0($7), $8
+ i32.const $0=, 1
+ i32.add $push1=, $1, $0
+ i32.add $push2=, $2, $0
+ i32.div_u $push3=, $pop1, $pop2
+ i32.const $10=, 16
+ i32.add $8=, $8, $10
+ i32.const $10=, __stack_pointer
+ i32.store $8=, 0($10), $8
+ return $pop3
+func_end0:
+ .size foo, func_end0-foo
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32, i32, i32, i32, i32, i32, i32, i32
+# BB#0: # %if.end
+ i32.const $4=, __stack_pointer
+ i32.load $4=, 0($4)
+ i32.const $5=, 32
+ i32.sub $7=, $4, $5
+ i32.const $5=, __stack_pointer
+ i32.store $7=, 0($5), $7
+ i32.const $0=, __stack_pointer
+ i32.load $0=, 0($0)
+ i32.const $1=, 4
+ i32.sub $7=, $0, $1
+ i32.const $1=, __stack_pointer
+ i32.store $7=, 0($1), $7
+ i32.const $push0=, 1073741823
+ i32.store $discard=, 0($7), $pop0
+ i32.const $push1=, .str
+ i32.const $6=, 16
+ i32.add $6=, $7, $6
+ i32.call $discard=, siprintf, $6, $pop1
+ i32.const $2=, __stack_pointer
+ i32.load $2=, 0($2)
+ i32.const $3=, 4
+ i32.add $7=, $2, $3
+ i32.const $3=, __stack_pointer
+ i32.store $7=, 0($3), $7
+ i32.const $push2=, 0
+ call exit, $pop2
+ unreachable
+func_end1:
+ .size main, func_end1-main
+
+ .type .str,@object # @.str
+ .section .rodata.str1.1,"aMS",@progbits,1
+.str:
+ .asciz "%d"
+ .size .str, 3
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits