summaryrefslogtreecommitdiff
path: root/test/torture-s/pr57568.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr57568.c.s')
-rw-r--r--test/torture-s/pr57568.c.s57
1 files changed, 57 insertions, 0 deletions
diff --git a/test/torture-s/pr57568.c.s b/test/torture-s/pr57568.c.s
new file mode 100644
index 000000000..58b66c8aa
--- /dev/null
+++ b/test/torture-s/pr57568.c.s
@@ -0,0 +1,57 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr57568.c"
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32, i32, i32
+# BB#0: # %entry
+ i32.const $0=, 0
+ block BB0_3
+ i32.load $push0=, b($0)
+ i32.const $push3=, 0
+ i32.eq $push4=, $pop0, $pop3
+ br_if $pop4, BB0_3
+# BB#1: # %land.lhs.true
+ i32.load $1=, c($0)
+ i32.load $2=, 0($1)
+ i32.const $push1=, 1
+ i32.shl $push2=, $2, $pop1
+ i32.store $discard=, 0($1), $pop2
+ i32.const $push5=, 0
+ i32.eq $push6=, $2, $pop5
+ br_if $pop6, BB0_3
+# BB#2: # %if.then
+ call abort
+ unreachable
+BB0_3: # %if.end
+ return $0
+func_end0:
+ .size main, func_end0-main
+
+ .type a,@object # @a
+ .bss
+ .globl a
+ .align 4
+a:
+ .zero 216
+ .size a, 216
+
+ .type b,@object # @b
+ .data
+ .globl b
+ .align 2
+b:
+ .int32 1 # 0x1
+ .size b, 4
+
+ .type c,@object # @c
+ .globl c
+ .align 2
+c:
+ .int32 a+128
+ .size c, 4
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits