aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Generic/2009-03-29-SoftFloatVectorExtract.ll
blob: b09859def617d625114f3d44ff53133b81d9e046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; XFAIL: target={{.*}}-aix{{.*}}
; RUN: llc < %s
; PR3899

@m = external global <2 x double>

define double @vector_ex() nounwind #0 {
       %v = load <2 x double>, ptr @m
       %x = extractelement <2 x double> %v, i32 1
       ret double %x
}

; Soft-float attribute so that targets that pay attention to soft float will
; make floating point types illegal and we'll exercise the legalizer code.
attributes #0 = { "use-soft-float" = "true" }