summaryrefslogtreecommitdiff
path: root/test/torture-s/pr48814-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr48814-1.c.s')
-rw-r--r--test/torture-s/pr48814-1.c.s72
1 files changed, 72 insertions, 0 deletions
diff --git a/test/torture-s/pr48814-1.c.s b/test/torture-s/pr48814-1.c.s
new file mode 100644
index 000000000..84084013a
--- /dev/null
+++ b/test/torture-s/pr48814-1.c.s
@@ -0,0 +1,72 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr48814-1.c"
+ .globl incr
+ .type incr,@function
+incr: # @incr
+ .result i32
+ .local i32
+# BB#0: # %entry
+ i32.const $0=, 0
+ i32.load $push0=, count($0)
+ i32.const $push1=, 1
+ i32.add $push2=, $pop0, $pop1
+ i32.store $push3=, count($0), $pop2
+ return $pop3
+func_end0:
+ .size incr, func_end0-incr
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32, i32, i32, i32
+# BB#0: # %entry
+ i32.call $0=, incr
+ i32.const $1=, 0
+ i32.load $2=, count($1)
+ i32.const $3=, 2
+ block BB1_3
+ i32.const $push5=, arr
+ i32.shl $push4=, $2, $3
+ i32.add $push6=, $pop5, $pop4
+ i32.store $discard=, 0($pop6), $0
+ i32.const $push1=, 1
+ i32.add $push2=, $2, $pop1
+ i32.store $push3=, count($1), $pop2
+ i32.ne $push7=, $pop3, $3
+ br_if $pop7, BB1_3
+# BB#1: # %entry
+ i32.load $push0=, arr+8($1)
+ i32.const $push8=, 3
+ i32.ne $push9=, $pop0, $pop8
+ br_if $pop9, BB1_3
+# BB#2: # %if.end
+ return $1
+BB1_3: # %if.then
+ call abort
+ unreachable
+func_end1:
+ .size main, func_end1-main
+
+ .type arr,@object # @arr
+ .data
+ .globl arr
+ .align 4
+arr:
+ .int32 1 # 0x1
+ .int32 2 # 0x2
+ .int32 3 # 0x3
+ .int32 4 # 0x4
+ .size arr, 16
+
+ .type count,@object # @count
+ .bss
+ .globl count
+ .align 2
+count:
+ .int32 0 # 0x0
+ .size count, 4
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits