summaryrefslogtreecommitdiff
path: root/test/torture-s/va-arg-13.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/va-arg-13.c.s')
-rw-r--r--test/torture-s/va-arg-13.c.s150
1 files changed, 150 insertions, 0 deletions
diff --git a/test/torture-s/va-arg-13.c.s b/test/torture-s/va-arg-13.c.s
new file mode 100644
index 000000000..ff68e7a2b
--- /dev/null
+++ b/test/torture-s/va-arg-13.c.s
@@ -0,0 +1,150 @@
+ .text
+ .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/va-arg-13.c"
+ .section .text.dummy,"ax",@progbits
+ .hidden dummy
+ .globl dummy
+ .type dummy,@function
+dummy: # @dummy
+ .param i32
+ .local i32, i32, i32, i32
+# BB#0: # %entry
+ i32.const $1=, __stack_pointer
+ i32.load $1=, 0($1)
+ i32.const $2=, 16
+ i32.sub $4=, $1, $2
+ i32.const $2=, __stack_pointer
+ i32.store $4=, 0($2), $4
+ i32.store $push0=, 12($4), $0
+ i32.const $push1=, 3
+ i32.add $push2=, $pop0, $pop1
+ i32.const $push3=, -4
+ i32.and $push4=, $pop2, $pop3
+ tee_local $push10=, $0=, $pop4
+ i32.const $push5=, 4
+ i32.add $push6=, $pop10, $pop5
+ i32.store $discard=, 12($4), $pop6
+ block
+ i32.load $push7=, 0($0)
+ i32.const $push8=, 1234
+ i32.ne $push9=, $pop7, $pop8
+ br_if $pop9, 0 # 0: down to label0
+# BB#1: # %if.end
+ i32.const $3=, 16
+ i32.add $4=, $4, $3
+ i32.const $3=, __stack_pointer
+ i32.store $4=, 0($3), $4
+ return
+.LBB0_2: # %if.then
+ end_block # label0:
+ call abort@FUNCTION
+ unreachable
+ .endfunc
+.Lfunc_end0:
+ .size dummy, .Lfunc_end0-dummy
+
+ .section .text.test,"ax",@progbits
+ .hidden test
+ .globl test
+ .type test,@function
+test: # @test
+ .param 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
+ copy_local $7=, $6
+ i32.const $4=, __stack_pointer
+ i32.store $6=, 0($4), $6
+ i32.const $push21=, 4
+ i32.or $push0=, $6, $pop21
+ tee_local $push20=, $2=, $pop0
+ i32.store $push1=, 0($pop20), $7
+ i32.store $push2=, 12($6), $pop1
+ i32.const $push19=, 3
+ i32.add $push3=, $pop2, $pop19
+ i32.const $push18=, -4
+ i32.and $push4=, $pop3, $pop18
+ tee_local $push17=, $1=, $pop4
+ i32.const $push16=, 4
+ i32.add $push5=, $pop17, $pop16
+ i32.store $discard=, 12($6), $pop5
+ block
+ i32.load $push6=, 0($1)
+ i32.const $push15=, 1234
+ i32.ne $push7=, $pop6, $pop15
+ br_if $pop7, 0 # 0: down to label1
+# BB#1: # %dummy.exit
+ i32.store $discard=, 0($2), $7
+ i32.load $push8=, 0($2)
+ i32.store $push9=, 12($6), $pop8
+ i32.const $push26=, 3
+ i32.add $push10=, $pop9, $pop26
+ i32.const $push25=, -4
+ i32.and $push11=, $pop10, $pop25
+ tee_local $push24=, $2=, $pop11
+ i32.const $push23=, 4
+ i32.add $push12=, $pop24, $pop23
+ i32.store $discard=, 12($6), $pop12
+ block
+ i32.load $push13=, 0($2)
+ i32.const $push22=, 1234
+ i32.ne $push14=, $pop13, $pop22
+ br_if $pop14, 0 # 0: down to label2
+# BB#2: # %dummy.exit16
+ i32.const $5=, 16
+ i32.add $6=, $7, $5
+ i32.const $5=, __stack_pointer
+ i32.store $6=, 0($5), $6
+ return
+.LBB1_3: # %if.then.i15
+ end_block # label2:
+ call abort@FUNCTION
+ unreachable
+.LBB1_4: # %if.then.i
+ end_block # label1:
+ call abort@FUNCTION
+ unreachable
+ .endfunc
+.Lfunc_end1:
+ .size test, .Lfunc_end1-test
+
+ .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
+# BB#0: # %entry
+ i32.const $5=, __stack_pointer
+ i32.load $5=, 0($5)
+ i32.const $6=, 16
+ i32.sub $7=, $5, $6
+ i32.const $6=, __stack_pointer
+ i32.store $7=, 0($6), $7
+ i32.const $1=, __stack_pointer
+ i32.load $1=, 0($1)
+ i32.const $2=, 4
+ i32.sub $7=, $1, $2
+ i32.const $2=, __stack_pointer
+ i32.store $7=, 0($2), $7
+ i32.const $push0=, 1234
+ i32.store $discard=, 0($7), $pop0
+ call test@FUNCTION, $0
+ i32.const $3=, __stack_pointer
+ i32.load $3=, 0($3)
+ i32.const $4=, 4
+ i32.add $7=, $3, $4
+ i32.const $4=, __stack_pointer
+ i32.store $7=, 0($4), $7
+ i32.const $push1=, 0
+ call exit@FUNCTION, $pop1
+ unreachable
+ .endfunc
+.Lfunc_end2:
+ .size main, .Lfunc_end2-main
+
+
+ .ident "clang version 3.9.0 "