forked from OSchip/llvm-project
[X86] Use update_llc_test_checks.py to regenerate fast-isel-constpool.ll
llvm-svn: 316828
This commit is contained in:
parent
8ca5863dd8
commit
ea83f85da0
|
@ -1,23 +1,38 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
; RUN: llc -mtriple=x86_64-apple-darwin -fast-isel -code-model=small < %s | FileCheck %s
|
||||
; RUN: llc -mtriple=x86_64-apple-darwin -fast-isel -code-model=large < %s | FileCheck %s --check-prefix=LARGE
|
||||
|
||||
; Make sure fast isel uses rip-relative addressing for the small code model.
|
||||
define float @constpool_float(float %x) {
|
||||
; CHECK-LABEL: constpool_float
|
||||
; CHECK: LCPI0_0(%rip)
|
||||
; CHECK-LABEL: constpool_float:
|
||||
; CHECK: ## BB#0:
|
||||
; CHECK-NEXT: movss {{.*#+}} xmm1 = mem[0],zero,zero,zero
|
||||
; CHECK-NEXT: addss %xmm1, %xmm0
|
||||
; CHECK-NEXT: retq
|
||||
;
|
||||
; LARGE-LABEL: constpool_float:
|
||||
; LARGE: ## BB#0:
|
||||
; LARGE-NEXT: movabsq $LCPI0_0, %rax
|
||||
; LARGE-NEXT: addss (%rax), %xmm0
|
||||
; LARGE-NEXT: retq
|
||||
|
||||
; LARGE-LABEL: constpool_float
|
||||
; LARGE: movabsq $LCPI0_0, %rax
|
||||
%1 = fadd float %x, 16.50e+01
|
||||
ret float %1
|
||||
}
|
||||
|
||||
define double @constpool_double(double %x) nounwind {
|
||||
; CHECK-LABEL: constpool_double
|
||||
; CHECK: LCPI1_0(%rip)
|
||||
; CHECK-LABEL: constpool_double:
|
||||
; CHECK: ## BB#0:
|
||||
; CHECK-NEXT: movsd {{.*#+}} xmm1 = mem[0],zero
|
||||
; CHECK-NEXT: addsd %xmm1, %xmm0
|
||||
; CHECK-NEXT: retq
|
||||
;
|
||||
; LARGE-LABEL: constpool_double:
|
||||
; LARGE: ## BB#0:
|
||||
; LARGE-NEXT: movabsq $LCPI1_0, %rax
|
||||
; LARGE-NEXT: addsd (%rax), %xmm0
|
||||
; LARGE-NEXT: retq
|
||||
|
||||
; LARGE-LABEL: constpool_double
|
||||
; LARGE: movabsq $LCPI1_0, %rax
|
||||
%1 = fadd double %x, 8.500000e-01
|
||||
ret double %1
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue