xref: /llvm-project/llvm/test/CodeGen/X86/shrink-fp-const1.ll (revision 0aef747b846586c29ed3285bbed20a3d607576fa)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=x86_64-- -mattr=+sse2 | FileCheck %s
3; PR1264
4
5define double @foo(double %x) {
6; CHECK-LABEL: foo:
7; CHECK:       # %bb.0:
8; CHECK-NEXT:    mulsd {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
9; CHECK-NEXT:    retq
10        %y = fmul double %x, 5.000000e-01
11        ret double %y
12}
13