summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/extract-fp.ll
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-03-26 20:54:15 +0000
committerSanjay Patel <spatel@rotateright.com>2019-03-26 20:54:15 +0000
commitbb5cba3cca070e0a7eb85ef25c513cd6b86ddd01 (patch)
tree75e3a9ea201e0557e2a365e93ab5f9724681fbd4 /llvm/test/CodeGen/X86/extract-fp.ll
parente1d79a87c6487b3e475eaa3a0314fb9b49d98be0 (diff)
downloadbcm5719-llvm-bb5cba3cca070e0a7eb85ef25c513cd6b86ddd01.tar.gz
bcm5719-llvm-bb5cba3cca070e0a7eb85ef25c513cd6b86ddd01.zip
[SDAG] add simplifications for FP at node creation time
We have the folds for fadd/fsub/fmul already in DAGCombiner, so it may be possible to remove that code if we can guarantee that these ops are zapped before they can exist. llvm-svn: 357029
Diffstat (limited to 'llvm/test/CodeGen/X86/extract-fp.ll')
-rw-r--r--llvm/test/CodeGen/X86/extract-fp.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/extract-fp.ll b/llvm/test/CodeGen/X86/extract-fp.ll
index 06ba30b603e..5632450669a 100644
--- a/llvm/test/CodeGen/X86/extract-fp.ll
+++ b/llvm/test/CodeGen/X86/extract-fp.ll
@@ -36,12 +36,11 @@ define float @ext_fmul_v4f32(<4 x float> %x) {
ret float %ext
}
-; TODO: X / 1.0 --> X
+; X / 1.0 --> X
define float @ext_fdiv_v4f32(<4 x float> %x) {
; CHECK-LABEL: ext_fdiv_v4f32:
; CHECK: # %bb.0:
-; CHECK-NEXT: divss {{.*}}(%rip), %xmm0
; CHECK-NEXT: retq
%bo = fdiv <4 x float> %x, <float 1.0, float 2.0, float 3.0, float 42.0>
%ext = extractelement <4 x float> %bo, i32 0
OpenPOWER on IntegriCloud