summaryrefslogtreecommitdiff
path: root/test/torture-s/pr58662.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr58662.c.s')
-rw-r--r--test/torture-s/pr58662.c.s64
1 files changed, 64 insertions, 0 deletions
diff --git a/test/torture-s/pr58662.c.s b/test/torture-s/pr58662.c.s
new file mode 100644
index 000000000..f0640179e
--- /dev/null
+++ b/test/torture-s/pr58662.c.s
@@ -0,0 +1,64 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr58662.c"
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32, i32
+# BB#0: # %entry
+ i32.const $0=, 0
+ block BB0_2
+ i32.load $push0=, a($0)
+ i32.eq $push1=, $pop0, $0
+ i32.const $push2=, -30000
+ i32.div_s $push3=, $pop1, $pop2
+ i32.store $push4=, d($0), $pop3
+ i32.const $push5=, 14
+ i32.rem_s $1=, $pop4, $pop5
+ i32.load $push7=, c($0)
+ i32.ne $push8=, $pop7, $0
+ i32.ne $push6=, $1, $0
+ i32.and $push9=, $pop8, $pop6
+ i32.store $discard=, b($0), $pop9
+ i32.load $push10=, b($0)
+ br_if $pop10, BB0_2
+# BB#1: # %if.end
+ return $0
+BB0_2: # %if.then
+ call abort
+ unreachable
+func_end0:
+ .size main, func_end0-main
+
+ .type a,@object # @a
+ .bss
+ .globl a
+ .align 2
+a:
+ .int32 0 # 0x0
+ .size a, 4
+
+ .type d,@object # @d
+ .globl d
+ .align 2
+d:
+ .int32 0 # 0x0
+ .size d, 4
+
+ .type c,@object # @c
+ .globl c
+ .align 2
+c:
+ .int32 0 # 0x0
+ .size c, 4
+
+ .type b,@object # @b
+ .globl b
+ .align 2
+b:
+ .int32 0 # 0x0
+ .size b, 4
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits