1
1
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2
2
; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck %s --check-prefixes=X64,DAG-X64
3
3
; RUN: llc < %s -mtriple=x86_64-linux-gnu -fast-isel | FileCheck %s --check-prefixes=X64,FASTISEL-X64
4
- ; RUN: llc < %s -mtriple=i686-linux-gnu | FileCheck %s --check-prefixes=X86,DAG-X86
5
- ; RUN: llc < %s -mtriple=i686-linux-gnu -fast-isel | FileCheck %s --check-prefixes=X86,FASTISEL-X86
4
+ ; RUN: llc < %s -mtriple=i686-linux-gnu | FileCheck %s --check-prefixes=X86
5
+ ; RUN: llc < %s -mtriple=i686-linux-gnu -fast-isel | FileCheck %s --check-prefixes=X86
6
6
; RUN: llc < %s -mtriple=x86_64-linux-gnu -global-isel -global-isel-abort=1 | FileCheck %s --check-prefixes=GISEL-X64
7
- ; RUN: llc < %s -mtriple=i686-linux-gnu -global-isel -global-isel-abort=1 | FileCheck %s --check-prefixes=X86, GISEL-X86
7
+ ; RUN: llc < %s -mtriple=i686-linux-gnu -global-isel -global-isel-abort=1 | FileCheck %s --check-prefixes=GISEL-X86
8
8
9
9
define float @floor_f32 (float %a ) nounwind readnone {
10
10
; DAG-X64-LABEL: floor_f32:
@@ -18,23 +18,14 @@ define float @floor_f32(float %a) nounwind readnone {
18
18
; FASTISEL-X64-NEXT: popq %rax
19
19
; FASTISEL-X64-NEXT: retq
20
20
;
21
- ; DAG-X86-LABEL: floor_f32:
22
- ; DAG-X86: # %bb.0:
23
- ; DAG-X86-NEXT: subl $12, %esp
24
- ; DAG-X86-NEXT: flds {{[0-9]+}}(%esp)
25
- ; DAG-X86-NEXT: fstps (%esp)
26
- ; DAG-X86-NEXT: calll floorf
27
- ; DAG-X86-NEXT: addl $12, %esp
28
- ; DAG-X86-NEXT: retl
29
- ;
30
- ; FASTISEL-X86-LABEL: floor_f32:
31
- ; FASTISEL-X86: # %bb.0:
32
- ; FASTISEL-X86-NEXT: subl $12, %esp
33
- ; FASTISEL-X86-NEXT: flds {{[0-9]+}}(%esp)
34
- ; FASTISEL-X86-NEXT: fstps (%esp)
35
- ; FASTISEL-X86-NEXT: calll floorf
36
- ; FASTISEL-X86-NEXT: addl $12, %esp
37
- ; FASTISEL-X86-NEXT: retl
21
+ ; X86-LABEL: floor_f32:
22
+ ; X86: # %bb.0:
23
+ ; X86-NEXT: subl $12, %esp
24
+ ; X86-NEXT: flds {{[0-9]+}}(%esp)
25
+ ; X86-NEXT: fstps (%esp)
26
+ ; X86-NEXT: calll floorf
27
+ ; X86-NEXT: addl $12, %esp
28
+ ; X86-NEXT: retl
38
29
;
39
30
; GISEL-X64-LABEL: floor_f32:
40
31
; GISEL-X64: # %bb.0:
@@ -67,23 +58,14 @@ define double @floor_f64(double %a) nounwind readnone {
67
58
; FASTISEL-X64-NEXT: popq %rax
68
59
; FASTISEL-X64-NEXT: retq
69
60
;
70
- ; DAG-X86-LABEL: floor_f64:
71
- ; DAG-X86: # %bb.0:
72
- ; DAG-X86-NEXT: subl $12, %esp
73
- ; DAG-X86-NEXT: fldl {{[0-9]+}}(%esp)
74
- ; DAG-X86-NEXT: fstpl (%esp)
75
- ; DAG-X86-NEXT: calll floor
76
- ; DAG-X86-NEXT: addl $12, %esp
77
- ; DAG-X86-NEXT: retl
78
- ;
79
- ; FASTISEL-X86-LABEL: floor_f64:
80
- ; FASTISEL-X86: # %bb.0:
81
- ; FASTISEL-X86-NEXT: subl $12, %esp
82
- ; FASTISEL-X86-NEXT: fldl {{[0-9]+}}(%esp)
83
- ; FASTISEL-X86-NEXT: fstpl (%esp)
84
- ; FASTISEL-X86-NEXT: calll floor
85
- ; FASTISEL-X86-NEXT: addl $12, %esp
86
- ; FASTISEL-X86-NEXT: retl
61
+ ; X86-LABEL: floor_f64:
62
+ ; X86: # %bb.0:
63
+ ; X86-NEXT: subl $12, %esp
64
+ ; X86-NEXT: fldl {{[0-9]+}}(%esp)
65
+ ; X86-NEXT: fstpl (%esp)
66
+ ; X86-NEXT: calll floor
67
+ ; X86-NEXT: addl $12, %esp
68
+ ; X86-NEXT: retl
87
69
;
88
70
; GISEL-X64-LABEL: floor_f64:
89
71
; GISEL-X64: # %bb.0:
@@ -136,6 +118,15 @@ define x86_fp80 @floor_f80(x86_fp80 %a) nounwind readnone {
136
118
; GISEL-X64-NEXT: callq floorl
137
119
; GISEL-X64-NEXT: addq $24, %rsp
138
120
; GISEL-X64-NEXT: retq
121
+ ;
122
+ ; GISEL-X86-LABEL: floor_f80:
123
+ ; GISEL-X86: # %bb.0:
124
+ ; GISEL-X86-NEXT: subl $12, %esp
125
+ ; GISEL-X86-NEXT: fldt {{[0-9]+}}(%esp)
126
+ ; GISEL-X86-NEXT: fstpt (%esp)
127
+ ; GISEL-X86-NEXT: calll floorl
128
+ ; GISEL-X86-NEXT: addl $12, %esp
129
+ ; GISEL-X86-NEXT: retl
139
130
%c = call x86_fp80 @llvm.floor.f80 (x86_fp80 %a )
140
131
ret x86_fp80 %c
141
132
}
0 commit comments