mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
d09b64fc25
Adds an instruction itinerary to all x86 instructions, giving each a default latency of 1, using the InstrItinClass IIC_DEFAULT. Sets specific latencies for Atom for the instructions in files X86InstrCMovSetCC.td, X86InstrArithmetic.td, X86InstrControl.td, and X86InstrShiftRotate.td. The Atom latencies for the remainder of the x86 instructions will be set in subsequent patches. Adds a test to verify that the scheduler is working. Also changes the scheduling preference to "Hybrid" for i386 Atom, while leaving x86_64 as ILP. Patch by Preston Gurd! llvm-svn: 149558
10 lines
253 B
LLVM
10 lines
253 B
LLVM
; RUN: llc < %s -mcpu=generic -march=x86-64 > %t
|
|
; RUN: grep subq %t | count 1
|
|
; RUN: grep addq %t | count 1
|
|
|
|
define x86_fp80 @f0(float %f) nounwind readnone noredzone {
|
|
entry:
|
|
%0 = fpext float %f to x86_fp80 ; <x86_fp80> [#uses=1]
|
|
ret x86_fp80 %0
|
|
}
|