mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
For x86, if sse2 is available, it's not a good idea since cvtss2sd is slower than a movsd load and it prevents load folding. On x87, it's important to shrink fp constant since fldt is very expensive. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47931 91177308-0d34-0410-b5e6-96231b3b80d8
8 lines
180 B
LLVM
8 lines
180 B
LLVM
; RUN: llvm-as < %s | llc -march=x86-64 -mattr=+sse2 | not grep cvtss2sd
|
|
; PR1264
|
|
|
|
define double @foo(double %x) {
|
|
%y = mul double %x, 5.000000e-01
|
|
ret double %y
|
|
}
|