diff options
Diffstat (limited to 'test/torture-s/floatunsisf-1.c.s')
-rw-r--r-- | test/torture-s/floatunsisf-1.c.s | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/test/torture-s/floatunsisf-1.c.s b/test/torture-s/floatunsisf-1.c.s new file mode 100644 index 000000000..8a08a5a0a --- /dev/null +++ b/test/torture-s/floatunsisf-1.c.s @@ -0,0 +1,54 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/floatunsisf-1.c" + .globl main + .type main,@function +main: # @main + .result i32 + .local i32 +# BB#0: # %entry + i32.const $0=, 0 + block BB0_2 + i32.load $push0=, u($0) + f32.convert_u/i32 $push1=, $pop0 + f32.store $discard=, f1($0), $pop1 + i32.const $push2=, 1325400065 + i32.store $discard=, f2($0), $pop2 + f32.load $push3=, f1($0) + f32.load $push4=, f2($0) + f32.eq $push5=, $pop3, $pop4 + br_if $pop5, BB0_2 +# BB#1: # %if.then + call abort + unreachable +BB0_2: # %if.end + call exit, $0 + unreachable +func_end0: + .size main, func_end0-main + + .type u,@object # @u + .data + .globl u + .align 2 +u: + .int32 2147483777 # 0x80000081 + .size u, 4 + + .type f1,@object # @f1 + .bss + .globl f1 + .align 2 +f1: + .int32 0 # float 0 + .size f1, 4 + + .type f2,@object # @f2 + .globl f2 + .align 2 +f2: + .int32 0 # float 0 + .size f2, 4 + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |