summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-08-11 17:04:31 +0000
committerSanjay Patel <spatel@rotateright.com>2015-08-11 17:04:31 +0000
commit070df89928c2c93bf81a406a41fb9d1cb6de9203 (patch)
treea806402353d6465abacb14c8b5bd9267711fc1d5 /llvm/test
parentcaddda56aa87649653684e7f3b13963d9f506be8 (diff)
downloadbcm5719-llvm-070df89928c2c93bf81a406a41fb9d1cb6de9203.tar.gz
bcm5719-llvm-070df89928c2c93bf81a406a41fb9d1cb6de9203.zip
fix minsize detection: minsize attribute implies optimizing for size
llvm-svn: 244631
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/powi.ll17
1 files changed, 4 insertions, 13 deletions
diff --git a/llvm/test/CodeGen/X86/powi.ll b/llvm/test/CodeGen/X86/powi.ll
index bb1cf4fd7f9..88b5f4eb14b 100644
--- a/llvm/test/CodeGen/X86/powi.ll
+++ b/llvm/test/CodeGen/X86/powi.ll
@@ -17,7 +17,7 @@ define double @pow_wrapper(double %a) nounwind readonly ssp noredzone {
ret double %ret
}
-define double @pow_wrapper_optsize(double %a) optsize {
+define double @pow_wrapper_optsize(double %a) optsize {
; CHECK-LABEL: pow_wrapper_optsize:
; CHECK: # BB#0:
; CHECK-NEXT: movl $15, %edi
@@ -26,20 +26,11 @@ define double @pow_wrapper_optsize(double %a) optsize {
ret double %ret
}
-; FIXME: Should not expand with minsize
-
-define double @pow_wrapper_minsize(double %a) minsize {
+define double @pow_wrapper_minsize(double %a) minsize {
; CHECK-LABEL: pow_wrapper_minsize:
; CHECK: # BB#0:
-; CHECK-NEXT: movapd %xmm0, %xmm1
-; CHECK-NEXT: mulsd %xmm1, %xmm1
-; CHECK-NEXT: mulsd %xmm1, %xmm0
-; CHECK-NEXT: mulsd %xmm1, %xmm1
-; CHECK-NEXT: mulsd %xmm1, %xmm0
-; CHECK-NEXT: mulsd %xmm1, %xmm1
-; CHECK-NEXT: mulsd %xmm0, %xmm1
-; CHECK-NEXT: movapd %xmm1, %xmm0
-; CHECK-NEXT: retq
+; CHECK-NEXT: movl $15, %edi
+; CHECK-NEXT: jmp
%ret = tail call double @llvm.powi.f64(double %a, i32 15) nounwind ; <double> [#uses=1]
ret double %ret
}
OpenPOWER on IntegriCloud