summaryrefslogtreecommitdiff
path: root/test/torture-s/20101013-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/20101013-1.c.s')
-rw-r--r--test/torture-s/20101013-1.c.s67
1 files changed, 67 insertions, 0 deletions
diff --git a/test/torture-s/20101013-1.c.s b/test/torture-s/20101013-1.c.s
new file mode 100644
index 000000000..1cff9f56a
--- /dev/null
+++ b/test/torture-s/20101013-1.c.s
@@ -0,0 +1,67 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/20101013-1.c"
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+# BB#0: # %entry
+ call build_ref_for_offset
+ i32.const $push0=, 0
+ return $pop0
+func_end0:
+ .size main, func_end0-main
+
+ .type build_ref_for_offset,@function
+build_ref_for_offset: # @build_ref_for_offset
+ .local i32, i32, i32, i32, i32
+# BB#0: # %entry
+ i32.const $0=, __stack_pointer
+ i32.load $0=, 0($0)
+ i32.const $1=, 16
+ i32.sub $4=, $0, $1
+ i32.const $1=, __stack_pointer
+ i32.store $4=, 0($1), $4
+ i32.const $3=, 8
+ i32.add $3=, $4, $3
+ call get_addr_base_and_unit_offset, $3
+ i64.load $push0=, 8($4)
+ i64.const $push1=, 4
+ i64.add $push2=, $pop0, $pop1
+ call build_int_cst, $pop2
+ i32.const $2=, 16
+ i32.add $4=, $4, $2
+ i32.const $2=, __stack_pointer
+ i32.store $4=, 0($2), $4
+ return
+func_end1:
+ .size build_ref_for_offset, func_end1-build_ref_for_offset
+
+ .type get_addr_base_and_unit_offset,@function
+get_addr_base_and_unit_offset: # @get_addr_base_and_unit_offset
+ .param i32
+# BB#0: # %entry
+ i64.const $push0=, 0
+ i64.store $discard=, 0($0), $pop0
+ return
+func_end2:
+ .size get_addr_base_and_unit_offset, func_end2-get_addr_base_and_unit_offset
+
+ .type build_int_cst,@function
+build_int_cst: # @build_int_cst
+ .param i64
+# BB#0: # %entry
+ block BB3_2
+ i64.const $push0=, 4
+ i64.ne $push1=, $0, $pop0
+ br_if $pop1, BB3_2
+# BB#1: # %if.end
+ return
+BB3_2: # %if.then
+ call abort
+ unreachable
+func_end3:
+ .size build_int_cst, func_end3-build_int_cst
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits