[WebAssembly] Don't perform the returned-argument optimization on constants.
[oota-llvm.git] / test / CodeGen / Generic / 2009-03-29-SoftFloatVectorExtract.ll
1 ; RUN: llc < %s
2 ; PR3899
3
4 @m = external global <2 x double>
5
6 define double @vector_ex() nounwind #0 {
7        %v = load <2 x double>, <2 x double>* @m
8        %x = extractelement <2 x double> %v, i32 1
9        ret double %x
10 }
11
12 ; Soft-float attribute so that targets that pay attention to soft float will
13 ; make floating point types illegal and we'll exercise the legalizer code.
14 attributes #0 = { "use-soft-float" = "true" }