xref: /aosp_15_r20/external/llvm/test/CodeGen/Generic/2009-03-29-SoftFloatVectorExtract.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s
2*9880d681SAndroid Build Coastguard Worker; PR3899
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker@m = external global <2 x double>
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine double @vector_ex() nounwind #0 {
7*9880d681SAndroid Build Coastguard Worker       %v = load <2 x double>, <2 x double>* @m
8*9880d681SAndroid Build Coastguard Worker       %x = extractelement <2 x double> %v, i32 1
9*9880d681SAndroid Build Coastguard Worker       ret double %x
10*9880d681SAndroid Build Coastguard Worker}
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker; Soft-float attribute so that targets that pay attention to soft float will
13*9880d681SAndroid Build Coastguard Worker; make floating point types illegal and we'll exercise the legalizer code.
14*9880d681SAndroid Build Coastguard Workerattributes #0 = { "use-soft-float" = "true" }
15