summaryrefslogtreecommitdiff
path: root/test/torture-s/float-floor.c.s
blob: e35e0bdda2deee1b83e4b25ee7614015e53dd17d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
	.text
	.file	"/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/float-floor.c"
	.section	.text.main,"ax",@progbits
	.hidden	main
	.globl	main
	.type	main,@function
main:                                   # @main
	.result 	i32
	.local  	f64
# BB#0:                                 # %entry
	block
	i32.const	$push0=, 0
	f64.load	$push1=, d($pop0)
	f64.floor	$push10=, $pop1
	tee_local	$push9=, $0=, $pop10
	i32.trunc_s/f64	$push2=, $pop9
	i32.const	$push8=, 1023
	i32.ne  	$push3=, $pop2, $pop8
	br_if   	0, $pop3        # 0: down to label0
# BB#1:                                 # %lor.lhs.false
	f32.demote/f64	$push4=, $0
	i32.trunc_s/f32	$push5=, $pop4
	i32.const	$push11=, 1023
	i32.ne  	$push6=, $pop5, $pop11
	br_if   	0, $pop6        # 0: down to label0
# BB#2:                                 # %if.end
	i32.const	$push7=, 0
	return  	$pop7
.LBB0_3:                                # %if.then
	end_block                       # label0:
	call    	abort@FUNCTION
	unreachable
	.endfunc
.Lfunc_end0:
	.size	main, .Lfunc_end0-main

	.hidden	d                       # @d
	.type	d,@object
	.section	.data.d,"aw",@progbits
	.globl	d
	.p2align	3
d:
	.int64	4652218414805286912     # double 1023.9999694824219
	.size	d, 8


	.ident	"clang version 3.9.0 "