summaryrefslogtreecommitdiff
path: root/test/torture-s/string-opt-18.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/string-opt-18.c.s')
-rw-r--r--test/torture-s/string-opt-18.c.s116
1 files changed, 116 insertions, 0 deletions
diff --git a/test/torture-s/string-opt-18.c.s b/test/torture-s/string-opt-18.c.s
new file mode 100644
index 000000000..976852745
--- /dev/null
+++ b/test/torture-s/string-opt-18.c.s
@@ -0,0 +1,116 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/string-opt-18.c"
+ .globl test1
+ .type test1,@function
+test1: # @test1
+ .param i32
+# BB#0: # %entry
+ return
+func_end0:
+ .size test1, func_end0-test1
+
+ .globl test2
+ .type test2,@function
+test2: # @test2
+ .param i32
+ .local i32
+# BB#0: # %entry
+ i32.const $1=, 8
+ block BB1_2
+ i32.call $push0=, mempcpy, $0, $0, $1
+ i32.add $push1=, $0, $1
+ i32.ne $push2=, $pop0, $pop1
+ br_if $pop2, BB1_2
+# BB#1: # %if.end
+ return
+BB1_2: # %if.then
+ call abort
+ unreachable
+func_end1:
+ .size test2, func_end1-test2
+
+ .globl test3
+ .type test3,@function
+test3: # @test3
+ .param i32
+# BB#0: # %entry
+ return
+func_end2:
+ .size test3, func_end2-test3
+
+ .globl test4
+ .type test4,@function
+test4: # @test4
+ .param i32
+# BB#0: # %entry
+ return
+func_end3:
+ .size test4, func_end3-test4
+
+ .globl test5
+ .type test5,@function
+test5: # @test5
+ .param i32
+# BB#0: # %entry
+ return
+func_end4:
+ .size test5, func_end4-test5
+
+ .globl test6
+ .type test6,@function
+test6: # @test6
+ .param i32
+# BB#0: # %entry
+ return
+func_end5:
+ .size test6, func_end5-test6
+
+ .globl test7
+ .type test7,@function
+test7: # @test7
+ .param i32
+# BB#0: # %entry
+ return
+func_end6:
+ .size test7, func_end6-test7
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32, i32, i32, i32, i32, i32, i32, i32
+# BB#0: # %entry
+ i32.const $1=, __stack_pointer
+ i32.load $1=, 0($1)
+ i32.const $2=, 16
+ i32.sub $7=, $1, $2
+ i32.const $2=, __stack_pointer
+ i32.store $7=, 0($2), $7
+ i32.const $0=, 8
+ i32.const $4=, 6
+ i32.add $4=, $7, $4
+ i32.const $5=, 6
+ i32.add $5=, $7, $5
+ i32.call $push0=, mempcpy, $4, $5, $0
+ i32.const $6=, 6
+ i32.add $6=, $7, $6
+ block BB7_2
+ i32.add $push1=, $6, $0
+ i32.ne $push2=, $pop0, $pop1
+ br_if $pop2, BB7_2
+# BB#1: # %test2.exit
+ i32.const $push3=, 0
+ i32.const $3=, 16
+ i32.add $7=, $7, $3
+ i32.const $3=, __stack_pointer
+ i32.store $7=, 0($3), $7
+ return $pop3
+BB7_2: # %if.then.i
+ call abort
+ unreachable
+func_end7:
+ .size main, func_end7-main
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits