diff options
Diffstat (limited to 'test/torture-s/pr28651.c.s')
-rw-r--r-- | test/torture-s/pr28651.c.s | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/torture-s/pr28651.c.s b/test/torture-s/pr28651.c.s new file mode 100644 index 000000000..ebee7d0d6 --- /dev/null +++ b/test/torture-s/pr28651.c.s @@ -0,0 +1,38 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr28651.c" + .globl foo + .type foo,@function +foo: # @foo + .param i32 + .result i32 +# BB#0: # %entry + i32.const $push0=, 2147483643 + i32.gt_s $push1=, $0, $pop0 + return $pop1 +func_end0: + .size foo, func_end0-foo + + .globl main + .type main,@function +main: # @main + .param i32, i32 + .result i32 +# BB#0: # %entry + block BB1_2 + i32.const $push0=, 2147483647 + i32.call $push1=, foo, $pop0 + i32.const $push3=, 0 + i32.eq $push4=, $pop1, $pop3 + br_if $pop4, BB1_2 +# BB#1: # %if.end + i32.const $push2=, 0 + return $pop2 +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 |