summaryrefslogtreecommitdiff
path: root/test/torture-s/20071018-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20071018-1.c.s')
-rw-r--r--test/torture-s/20071018-1.c.s59
1 files changed, 59 insertions, 0 deletions
diff --git a/test/torture-s/20071018-1.c.s b/test/torture-s/20071018-1.c.s
new file mode 100644
index 000000000..0bb5131e3
--- /dev/null
+++ b/test/torture-s/20071018-1.c.s
@@ -0,0 +1,59 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/20071018-1.c"
+ .globl bar
+ .type bar,@function
+bar: # @bar
+ .param i32
+# BB#0: # %entry
+ i32.const $push0=, 8
+ i32.call $push1=, __builtin_malloc, $pop0
+ i32.store $discard=, 0($0), $pop1
+ return
+func_end0:
+ .size bar, func_end0-bar
+
+ .globl foo
+ .type foo,@function
+foo: # @foo
+ .param i32
+ .result i32
+ .local i32
+# BB#0: # %entry
+ i32.const $push0=, 16
+ i32.call $1=, __builtin_malloc, $pop0
+ i32.const $push1=, 5
+ i32.shl $push2=, $0, $pop1
+ i32.add $push3=, $pop2, $1
+ i32.const $push4=, -20
+ i32.add $0=, $pop3, $pop4
+ i32.const $push5=, 0
+ i32.store $discard=, 0($0), $pop5
+ call bar, $0
+ i32.load $push6=, 0($0)
+ return $pop6
+func_end1:
+ .size foo, func_end1-foo
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+# BB#0: # %entry
+ block BB2_2
+ i32.const $push0=, 1
+ i32.call $push1=, foo, $pop0
+ i32.const $push3=, 0
+ i32.eq $push4=, $pop1, $pop3
+ br_if $pop4, BB2_2
+# BB#1: # %if.end
+ i32.const $push2=, 0
+ return $pop2
+BB2_2: # %if.then
+ call abort
+ unreachable
+func_end2:
+ .size main, func_end2-main
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits