mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 21:00:00 +00:00
922d314e8f
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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149558 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
353 B
LLVM
14 lines
353 B
LLVM
; RUN: llc < %s -mcpu=generic -march=x86 -x86-asm-syntax=intel | \
|
|
; RUN: grep {add ESP, 8}
|
|
|
|
target triple = "i686-pc-linux-gnu"
|
|
|
|
declare x86_fastcallcc void @func(i32*, i64)
|
|
|
|
define x86_fastcallcc void @caller(i32, i64) {
|
|
%X = alloca i32 ; <i32*> [#uses=1]
|
|
call x86_fastcallcc void @func( i32* %X, i64 0 )
|
|
ret void
|
|
}
|
|
|