random load/store, rather than crashing llc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105710
91177308-0d34-0410-b5e6-
96231b3b80d8
Base = CurDAG->getTargetConstant(0, N.getValueType());
Index = N;
return true;
- } else if (Opc == ISD::Register || Opc == ISD::CopyFromReg) {
+ } else if (Opc == ISD::Register
+ ||Opc == ISD::CopyFromReg
+ ||Opc == ISD::UNDEF) {
unsigned OpOpc = Op->getOpcode();
if (OpOpc == ISD::STORE || OpOpc == ISD::LOAD) {
ret <4 x i32> %rv3
}
+define <4 x float> @load_undef(){
+ ;CHECK lqd $3, 0($3)
+ %val = load <4 x float>* undef
+ ret <4 x float> %val
+}