1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/CodeGen/Generic/2009-03-29-SoftFloatVectorExtract.ll
Duncan Sands 602234cdf3 Fix PR3899: add support for extracting floats from vectors
when using -soft-float.
Based on a patch by Jakob Stoklund Olesen.

llvm-svn: 67996
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
}