summaryrefslogtreecommitdiff
path: root/test/torture-s/pr49279.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr49279.c.s')
-rw-r--r--test/torture-s/pr49279.c.s88
1 files changed, 88 insertions, 0 deletions
diff --git a/test/torture-s/pr49279.c.s b/test/torture-s/pr49279.c.s
new file mode 100644
index 000000000..161f6dcf1
--- /dev/null
+++ b/test/torture-s/pr49279.c.s
@@ -0,0 +1,88 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr49279.c"
+ .globl bar
+ .type bar,@function
+bar: # @bar
+ .param i32
+ .result i32
+# BB#0: # %entry
+ #APP
+ #NO_APP
+ return $0
+func_end0:
+ .size bar, func_end0-bar
+
+ .globl foo
+ .type foo,@function
+foo: # @foo
+ .param i32, i32
+ .result i32
+ .local i32, i32, i32, i32, i32, i32, i32
+# BB#0: # %entry
+ i32.const $3=, __stack_pointer
+ i32.load $3=, 0($3)
+ i32.const $4=, 16
+ i32.sub $6=, $3, $4
+ i32.const $4=, __stack_pointer
+ i32.store $6=, 0($4), $6
+ i32.const $push1=, 4
+ i32.const $6=, 8
+ i32.add $6=, $6, $6
+ i32.or $2=, $6, $pop1
+ i32.store $discard=, 0($2), $0
+ i32.const $push0=, 1
+ i32.store $0=, 8($6), $pop0
+ i32.const $7=, 8
+ i32.add $7=, $6, $7
+ i32.call $push2=, bar, $7
+ i32.store $discard=, 4($pop2), $1
+ i32.load $2=, 0($2)
+ i32.const $push3=, 0
+ i32.store $discard=, 0($2), $pop3
+ i32.store $discard=, 0($1), $0
+ i32.load $push4=, 0($2)
+ i32.const $5=, 16
+ i32.add $6=, $6, $5
+ i32.const $5=, __stack_pointer
+ i32.store $6=, 0($5), $6
+ return $pop4
+func_end1:
+ .size foo, func_end1-foo
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32, i32, i32, i32, i32, i32
+# BB#0: # %entry
+ i32.const $0=, __stack_pointer
+ i32.load $0=, 0($0)
+ i32.const $1=, 16
+ i32.sub $5=, $0, $1
+ i32.const $1=, __stack_pointer
+ i32.store $5=, 0($1), $5
+ i32.const $3=, 12
+ i32.add $3=, $5, $3
+ i32.const $4=, 8
+ i32.add $4=, $5, $4
+ block BB2_2
+ i32.call $push0=, foo, $3, $4
+ i32.const $push1=, 1
+ i32.ne $push2=, $pop0, $pop1
+ br_if $pop2, BB2_2
+# BB#1: # %if.end
+ i32.const $push3=, 0
+ i32.const $2=, 16
+ i32.add $5=, $5, $2
+ i32.const $2=, __stack_pointer
+ i32.store $5=, 0($2), $5
+ return $pop3
+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