1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=aarch64-linux-eabi -o - | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker%struct.a= type { i64, i64, i64, i64 } 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; DAG combine will try to perform a transformation that creates a vcvtfp2fxs 6*9880d681SAndroid Build Coastguard Worker; with a v4f64 input. Since v4i64 is not legal we should bail out. We can 7*9880d681SAndroid Build Coastguard Worker; pottentially still create the vcvtfp2fxs node after legalization (but on a 8*9880d681SAndroid Build Coastguard Worker; v2f64). 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: fun1 11*9880d681SAndroid Build Coastguard Workerdefine void @fun1() local_unnamed_addr { 12*9880d681SAndroid Build Coastguard Workerentry: 13*9880d681SAndroid Build Coastguard Worker %mul = fmul <4 x double> zeroinitializer, <double 6.553600e+04, double 6.553600e+04, double 6.553600e+04, double 6.553600e+04> 14*9880d681SAndroid Build Coastguard Worker %toi = fptosi <4 x double> %mul to <4 x i64> 15*9880d681SAndroid Build Coastguard Worker %ptr = getelementptr inbounds %struct.a, %struct.a* undef, i64 0, i32 2 16*9880d681SAndroid Build Coastguard Worker %elem = extractelement <4 x i64> %toi, i32 1 17*9880d681SAndroid Build Coastguard Worker store i64 %elem, i64* %ptr, align 8 18*9880d681SAndroid Build Coastguard Worker call void @llvm.trap() 19*9880d681SAndroid Build Coastguard Worker unreachable 20*9880d681SAndroid Build Coastguard Worker} 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Worker; Function Attrs: noreturn nounwind 23*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.trap() 24*9880d681SAndroid Build Coastguard Worker 25