summaryrefslogtreecommitdiff
path: root/test/llvm_autogenerated/mem-intrinsics.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/llvm_autogenerated/mem-intrinsics.s')
-rw-r--r--test/llvm_autogenerated/mem-intrinsics.s50
1 files changed, 50 insertions, 0 deletions
diff --git a/test/llvm_autogenerated/mem-intrinsics.s b/test/llvm_autogenerated/mem-intrinsics.s
index 540784f44..286d105ad 100644
--- a/test/llvm_autogenerated/mem-intrinsics.s
+++ b/test/llvm_autogenerated/mem-intrinsics.s
@@ -63,4 +63,54 @@ set_no:
.Lfunc_end5:
.size set_no, .Lfunc_end5-set_no
+ .globl frame_index
+ .type frame_index,@function
+frame_index:
+ .local i32, i32, i32, i32, i32
+ i32.const $0=, __stack_pointer
+ i32.load $0=, 0($0)
+ i32.const $1=, 4096
+ i32.sub $4=, $0, $1
+ i32.const $1=, __stack_pointer
+ i32.store $4=, 0($1), $4
+ i32.const $push1=, 0
+ i32.const $push0=, 1024
+ i32.const $3=, 2048
+ i32.add $3=, $4, $3
+ i32.call $discard=, memset@FUNCTION, $3, $pop1, $pop0
+ i32.const $push3=, 0
+ i32.const $push2=, 1024
+ i32.call $discard=, memset@FUNCTION, $4, $pop3, $pop2
+ i32.const $2=, 4096
+ i32.add $4=, $4, $2
+ i32.const $2=, __stack_pointer
+ i32.store $4=, 0($2), $4
+ return
+ .endfunc
+.Lfunc_end6:
+ .size frame_index, .Lfunc_end6-frame_index
+
+ .globl discard_result
+ .type discard_result,@function
+discard_result:
+ .param i32, i32, i32, i32, i32
+ .result i32
+ block
+ block
+ i32.const $push0=, 0
+ i32.eq $push1=, $3, $pop0
+ br_if $pop1, 0
+ i32.call $0=, def@FUNCTION
+ br 1
+.LBB7_2:
+ end_block
+ br_if $4, 0
+ i32.call $discard=, memset@FUNCTION, $0, $1, $2
+.LBB7_4:
+ end_block
+ return $0
+ .endfunc
+.Lfunc_end7:
+ .size discard_result, .Lfunc_end7-discard_result
+