summaryrefslogtreecommitdiff
path: root/test/torture-s/pr59101.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/pr59101.c.s')
-rw-r--r--test/torture-s/pr59101.c.s41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/torture-s/pr59101.c.s b/test/torture-s/pr59101.c.s
new file mode 100644
index 000000000..617aa9c52
--- /dev/null
+++ b/test/torture-s/pr59101.c.s
@@ -0,0 +1,41 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr59101.c"
+ .globl foo
+ .type foo,@function
+foo: # @foo
+ .param i32
+ .result i32
+ .local i32
+# BB#0: # %entry
+ i32.const $1=, -192176872
+ i32.and $push0=, $0, $1
+ i32.ne $push1=, $pop0, $1
+ i32.const $push2=, 6
+ i32.or $push3=, $pop1, $pop2
+ return $pop3
+func_end0:
+ .size foo, func_end0-foo
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32
+# BB#0: # %entry
+ i32.const $0=, 0
+ block BB1_2
+ i32.call $push0=, foo, $0
+ i32.const $push1=, 7
+ i32.ne $push2=, $pop0, $pop1
+ br_if $pop2, BB1_2
+# BB#1: # %if.end
+ return $0
+BB1_2: # %if.then
+ call abort
+ unreachable
+func_end1:
+ .size main, func_end1-main
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits