diff options
Diffstat (limited to 'test/torture-s/float-floor.c.s')
-rw-r--r-- | test/torture-s/float-floor.c.s | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/torture-s/float-floor.c.s b/test/torture-s/float-floor.c.s new file mode 100644 index 000000000..9620af79f --- /dev/null +++ b/test/torture-s/float-floor.c.s @@ -0,0 +1,40 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/float-floor.c" + .globl main + .type main,@function +main: # @main + .result i32 + .local f64, i32, i32, i32 +# BB#0: # %entry + i32.const $1=, 0 + f64.load $push0=, d($1) + f64.floor $0=, $pop0 + i32.trunc_s/f64 $2=, $0 + i32.const $3=, 1023 + block BB0_3 + i32.ne $push1=, $2, $3 + br_if $pop1, BB0_3 +# BB#1: # %lor.lhs.false + f32.demote/f64 $push2=, $0 + i32.trunc_s/f32 $push3=, $pop2 + i32.ne $push4=, $pop3, $3 + br_if $pop4, BB0_3 +# BB#2: # %if.end + return $1 +BB0_3: # %if.then + call abort + unreachable +func_end0: + .size main, func_end0-main + + .type d,@object # @d + .data + .globl d + .align 3 +d: + .int64 4652218414805286912 # double 1023.9999694824219 + .size d, 8 + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |