summaryrefslogtreecommitdiff
path: root/test/torture-s/pta-field-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pta-field-1.c.s')
-rw-r--r--test/torture-s/pta-field-1.c.s105
1 files changed, 105 insertions, 0 deletions
diff --git a/test/torture-s/pta-field-1.c.s b/test/torture-s/pta-field-1.c.s
new file mode 100644
index 000000000..0a4da8f4c
--- /dev/null
+++ b/test/torture-s/pta-field-1.c.s
@@ -0,0 +1,105 @@
+ .text
+ .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/pta-field-1.c"
+ .section .text.bar,"ax",@progbits
+ .hidden bar
+ .globl bar
+ .type bar,@function
+bar: # @bar
+ .param i32
+# BB#0: # %entry
+ i32.load $push0=, 4($0)
+ i32.const $push1=, 0
+ i32.store $discard=, 0($pop0), $pop1
+ return
+ .endfunc
+.Lfunc_end0:
+ .size bar, .Lfunc_end0-bar
+
+ .section .text.foo,"ax",@progbits
+ .hidden foo
+ .globl foo
+ .type foo,@function
+foo: # @foo
+ .result i32
+ .local i32, 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 $6=, $0, $1
+ i32.const $1=, __stack_pointer
+ i32.store $6=, 0($1), $6
+ i32.const $push0=, 1
+ i32.store $discard=, 4($6), $pop0
+ i32.const $push1=, 2
+ i32.store $discard=, 0($6), $pop1
+ i32.const $push2=, 4
+ i32.const $3=, 8
+ i32.add $3=, $6, $3
+ i32.or $push3=, $3, $pop2
+ i32.store $discard=, 0($pop3), $6
+ i32.const $4=, 4
+ i32.add $4=, $6, $4
+ i32.store $discard=, 8($6):p2align=3, $4
+ i32.const $5=, 8
+ i32.add $5=, $6, $5
+ call bar@FUNCTION, $5
+ i32.load $push4=, 0($6)
+ i32.const $2=, 16
+ i32.add $6=, $6, $2
+ i32.const $2=, __stack_pointer
+ i32.store $6=, 0($2), $6
+ return $pop4
+ .endfunc
+.Lfunc_end1:
+ .size foo, .Lfunc_end1-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
+# BB#0: # %entry
+ i32.const $0=, __stack_pointer
+ i32.load $0=, 0($0)
+ i32.const $1=, 16
+ i32.sub $6=, $0, $1
+ i32.const $1=, __stack_pointer
+ i32.store $6=, 0($1), $6
+ i32.const $push0=, 1
+ i32.store $discard=, 4($6), $pop0
+ i32.const $push1=, 2
+ i32.store $discard=, 0($6), $pop1
+ i32.const $push2=, 4
+ i32.const $3=, 8
+ i32.add $3=, $6, $3
+ i32.or $push3=, $3, $pop2
+ i32.store $discard=, 0($pop3), $6
+ i32.const $4=, 4
+ i32.add $4=, $6, $4
+ i32.store $discard=, 8($6):p2align=3, $4
+ i32.const $5=, 8
+ i32.add $5=, $6, $5
+ call bar@FUNCTION, $5
+ block
+ i32.load $push4=, 0($6)
+ br_if $pop4, 0 # 0: down to label0
+# BB#1: # %if.end
+ i32.const $push5=, 0
+ i32.const $2=, 16
+ i32.add $6=, $6, $2
+ i32.const $2=, __stack_pointer
+ i32.store $6=, 0($2), $6
+ return $pop5
+.LBB2_2: # %if.then
+ end_block # label0:
+ call abort@FUNCTION
+ unreachable
+ .endfunc
+.Lfunc_end2:
+ .size main, .Lfunc_end2-main
+
+
+ .ident "clang version 3.9.0 "