llvm-6502/test/CodeGen/Generic/2009-03-29-SoftFloatVectorExtract.ll
Duncan Sands 004e27cc1b Fix PR3899: add support for extracting floats from vectors
when using -soft-float.
Based on a patch by Jakob Stoklund Olesen.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67996 91177308-0d34-0410-b5e6-96231b3b80d8
2009-03-29 13:51:06 +00:00

11 lines
229 B
LLVM

; RUN: llvm-as < %s | llc -soft-float
; PR3899
@m = external global <2 x double>;
define double @vector_ex() nounwind {
%v = load <2 x double>* @m
%x = extractelement <2 x double> %v, i32 1
ret double %x
}