Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 0cced31

Browse files
committed
[X86] Use update_llc_test_checks.py to regenerate fast-isel-constpool.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316828 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 6fd0bcd commit 0cced31

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed
Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,38 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
12
; RUN: llc -mtriple=x86_64-apple-darwin -fast-isel -code-model=small < %s | FileCheck %s
23
; RUN: llc -mtriple=x86_64-apple-darwin -fast-isel -code-model=large < %s | FileCheck %s --check-prefix=LARGE
34

45
; Make sure fast isel uses rip-relative addressing for the small code model.
56
define float @constpool_float(float %x) {
6-
; CHECK-LABEL: constpool_float
7-
; CHECK: LCPI0_0(%rip)
7+
; CHECK-LABEL: constpool_float:
8+
; CHECK: ## BB#0:
9+
; CHECK-NEXT: movss {{.*#+}} xmm1 = mem[0],zero,zero,zero
10+
; CHECK-NEXT: addss %xmm1, %xmm0
11+
; CHECK-NEXT: retq
12+
;
13+
; LARGE-LABEL: constpool_float:
14+
; LARGE: ## BB#0:
15+
; LARGE-NEXT: movabsq $LCPI0_0, %rax
16+
; LARGE-NEXT: addss (%rax), %xmm0
17+
; LARGE-NEXT: retq
818

9-
; LARGE-LABEL: constpool_float
10-
; LARGE: movabsq $LCPI0_0, %rax
1119
%1 = fadd float %x, 16.50e+01
1220
ret float %1
1321
}
1422

1523
define double @constpool_double(double %x) nounwind {
16-
; CHECK-LABEL: constpool_double
17-
; CHECK: LCPI1_0(%rip)
24+
; CHECK-LABEL: constpool_double:
25+
; CHECK: ## BB#0:
26+
; CHECK-NEXT: movsd {{.*#+}} xmm1 = mem[0],zero
27+
; CHECK-NEXT: addsd %xmm1, %xmm0
28+
; CHECK-NEXT: retq
29+
;
30+
; LARGE-LABEL: constpool_double:
31+
; LARGE: ## BB#0:
32+
; LARGE-NEXT: movabsq $LCPI1_0, %rax
33+
; LARGE-NEXT: addsd (%rax), %xmm0
34+
; LARGE-NEXT: retq
1835

19-
; LARGE-LABEL: constpool_double
20-
; LARGE: movabsq $LCPI1_0, %rax
2136
%1 = fadd double %x, 8.500000e-01
2237
ret double %1
2338
}

0 commit comments

Comments
 (0)