summaryrefslogtreecommitdiff
path: root/test/torture-s/pr57130.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr57130.c.s')
-rw-r--r--test/torture-s/pr57130.c.s133
1 files changed, 133 insertions, 0 deletions
diff --git a/test/torture-s/pr57130.c.s b/test/torture-s/pr57130.c.s
new file mode 100644
index 000000000..6b33de4e4
--- /dev/null
+++ b/test/torture-s/pr57130.c.s
@@ -0,0 +1,133 @@
+ .text
+ .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr57130.c"
+ .section .text.foo,"ax",@progbits
+ .hidden foo
+ .globl foo
+ .type foo,@function
+foo: # @foo
+ .param i32
+ .local i32
+# BB#0: # %entry
+ i32.const $push0=, 0
+ i32.const $push11=, 0
+ i32.load $push1=, foo.cnt($pop11)
+ tee_local $push10=, $1=, $pop1
+ i32.const $push2=, 1
+ i32.add $push3=, $pop10, $pop2
+ i32.store $discard=, foo.cnt($pop0), $pop3
+ block
+ i32.const $push4=, 4
+ i32.shl $push5=, $1, $pop4
+ i32.const $push6=, s
+ i32.add $push7=, $pop5, $pop6
+ i32.const $push8=, 16
+ i32.call $push9=, memcmp@FUNCTION, $0, $pop7, $pop8
+ br_if $pop9, 0 # 0: down to label0
+# BB#1: # %if.end
+ return
+.LBB0_2: # %if.then
+ end_block # label0:
+ call abort@FUNCTION
+ unreachable
+ .endfunc
+.Lfunc_end0:
+ .size foo, .Lfunc_end0-foo
+
+ .section .text.main,"ax",@progbits
+ .hidden main
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32
+# BB#0: # %entry
+ i32.const $3=, __stack_pointer
+ i32.load $3=, 0($3)
+ i32.const $4=, 48
+ i32.sub $10=, $3, $4
+ i32.const $4=, __stack_pointer
+ i32.store $10=, 0($4), $10
+ i32.const $push2=, 8
+ i32.const $6=, 32
+ i32.add $6=, $10, $6
+ i32.add $push3=, $6, $pop2
+ tee_local $push24=, $2=, $pop3
+ i32.const $push0=, 0
+ i32.load $push1=, .Lmain.r+8($pop0)
+ i32.store $discard=, 0($pop24):p2align=3, $pop1
+ i32.const $push23=, 0
+ i64.load $push4=, .Lmain.r($pop23):p2align=2
+ i64.store $discard=, 32($10), $pop4
+ i32.const $push22=, 8
+ i32.const $7=, 16
+ i32.add $7=, $10, $7
+ i32.add $push7=, $7, $pop22
+ i32.const $push21=, 0
+ i64.load $push8=, .Lmain.r+8($pop21):p2align=2
+ i64.store $discard=, 0($pop7):p2align=2, $pop8
+ i32.const $push20=, 0
+ i64.load $push9=, .Lmain.r($pop20):p2align=2
+ i64.store $discard=, 16($10):p2align=2, $pop9
+ i32.const $8=, 16
+ i32.add $8=, $10, $8
+ call foo@FUNCTION, $8
+ i32.const $push5=, 4
+ i32.const $9=, 32
+ i32.add $9=, $10, $9
+ i32.or $push6=, $9, $pop5
+ i32.const $push10=, 2
+ i32.store $1=, 0($pop6), $pop10
+ i32.const $push11=, -1
+ i32.store $discard=, 0($2):p2align=3, $pop11
+ i32.const $push19=, 0
+ i32.store $0=, 32($10):p2align=3, $pop19
+ i32.const $push13=, 12
+ i32.add $push14=, $10, $pop13
+ i32.store $push12=, 44($10), $1
+ i32.store $discard=, 0($pop14), $pop12
+ i32.const $push18=, 8
+ i32.add $push15=, $10, $pop18
+ i32.load $push16=, 0($2):p2align=3
+ i32.store $discard=, 0($pop15), $pop16
+ i64.load $push17=, 32($10)
+ i64.store $discard=, 0($10):p2align=2, $pop17
+ call foo@FUNCTION, $10
+ i32.const $5=, 48
+ i32.add $10=, $10, $5
+ i32.const $5=, __stack_pointer
+ i32.store $10=, 0($5), $10
+ return $0
+ .endfunc
+.Lfunc_end1:
+ .size main, .Lfunc_end1-main
+
+ .hidden s # @s
+ .type s,@object
+ .section .data.s,"aw",@progbits
+ .globl s
+ .p2align 4
+s:
+ .int32 6 # 0x6
+ .int32 8 # 0x8
+ .int32 4294967288 # 0xfffffff8
+ .int32 4294967291 # 0xfffffffb
+ .int32 0 # 0x0
+ .int32 2 # 0x2
+ .int32 4294967295 # 0xffffffff
+ .int32 2 # 0x2
+ .size s, 32
+
+ .type foo.cnt,@object # @foo.cnt
+ .lcomm foo.cnt,4,2
+ .type .Lmain.r,@object # @main.r
+ .section .rodata.cst16,"aM",@progbits,16
+ .p2align 2
+.Lmain.r:
+ .int32 6 # 0x6
+ .int32 8 # 0x8
+ .int32 4294967288 # 0xfffffff8
+ .int32 4294967291 # 0xfffffffb
+ .size .Lmain.r, 16
+
+
+ .ident "clang version 3.9.0 "