mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 00:12:50 +01:00
9e8c9204ef
U utils/TableGen/FastISelEmitter.cpp --- Reverse-merging r107943 into '.': U test/CodeGen/X86/fast-isel.ll U test/CodeGen/X86/fast-isel-loads.ll U include/llvm/Target/TargetLowering.h U include/llvm/Support/PassNameParser.h U include/llvm/CodeGen/FunctionLoweringInfo.h U include/llvm/CodeGen/CallingConvLower.h U include/llvm/CodeGen/FastISel.h U include/llvm/CodeGen/SelectionDAGISel.h U lib/CodeGen/LLVMTargetMachine.cpp U lib/CodeGen/CallingConvLower.cpp U lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp U lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp U lib/CodeGen/SelectionDAG/FastISel.cpp U lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp U lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp U lib/CodeGen/SelectionDAG/InstrEmitter.cpp U lib/CodeGen/SelectionDAG/TargetLowering.cpp U lib/Target/XCore/XCoreISelLowering.cpp U lib/Target/XCore/XCoreISelLowering.h U lib/Target/X86/X86ISelLowering.cpp U lib/Target/X86/X86FastISel.cpp U lib/Target/X86/X86ISelLowering.h llvm-svn: 107987
24 lines
926 B
LLVM
24 lines
926 B
LLVM
; RUN: llc -march=x86-64 -O0 -asm-verbose=false < %s | FileCheck %s
|
|
|
|
; Fast-isel shouldn't reload the argument values from the stack.
|
|
|
|
; CHECK: foo:
|
|
; CHECK-NEXT: movq %rdi, -8(%rsp)
|
|
; CHECK-NEXT: movq %rsi, -16(%rsp)
|
|
; CHECK: movsd 128(%rsi,%rdi,8), %xmm0
|
|
; CHECK-NEXT: ret
|
|
|
|
define double @foo(i64 %x, double* %p) nounwind {
|
|
entry:
|
|
%x.addr = alloca i64, align 8 ; <i64*> [#uses=2]
|
|
%p.addr = alloca double*, align 8 ; <double**> [#uses=2]
|
|
store i64 %x, i64* %x.addr
|
|
store double* %p, double** %p.addr
|
|
%tmp = load i64* %x.addr ; <i64> [#uses=1]
|
|
%tmp1 = load double** %p.addr ; <double*> [#uses=1]
|
|
%add = add nsw i64 %tmp, 16 ; <i64> [#uses=1]
|
|
%arrayidx = getelementptr inbounds double* %tmp1, i64 %add ; <double*> [#uses=1]
|
|
%tmp2 = load double* %arrayidx ; <double> [#uses=1]
|
|
ret double %tmp2
|
|
}
|