- (* RUN: grep {@const_neg = global i64 sub} < %t.ll
- * RUN: grep {@const_nsw_neg = global i64 sub nsw } < %t.ll
- * RUN: grep {@const_nuw_neg = global i64 sub nuw } < %t.ll
- * RUN: grep {@const_fneg = global double fsub } < %t.ll
- * RUN: grep {@const_not = global i64 xor } < %t.ll
- * RUN: grep {@const_add = global i64 add } < %t.ll
- * RUN: grep {@const_nsw_add = global i64 add nsw } < %t.ll
- * RUN: grep {@const_nuw_add = global i64 add nuw } < %t.ll
- * RUN: grep {@const_fadd = global double fadd } < %t.ll
- * RUN: grep {@const_sub = global i64 sub } < %t.ll
- * RUN: grep {@const_nsw_sub = global i64 sub nsw } < %t.ll
- * RUN: grep {@const_nuw_sub = global i64 sub nuw } < %t.ll
- * RUN: grep {@const_fsub = global double fsub } < %t.ll
- * RUN: grep {@const_mul = global i64 mul } < %t.ll
- * RUN: grep {@const_nsw_mul = global i64 mul nsw } < %t.ll
- * RUN: grep {@const_nuw_mul = global i64 mul nuw } < %t.ll
- * RUN: grep {@const_fmul = global double fmul } < %t.ll
- * RUN: grep {@const_udiv = global i64 udiv } < %t.ll
- * RUN: grep {@const_sdiv = global i64 sdiv } < %t.ll
- * RUN: grep {@const_exact_sdiv = global i64 sdiv exact } < %t.ll
- * RUN: grep {@const_fdiv = global double fdiv } < %t.ll
- * RUN: grep {@const_urem = global i64 urem } < %t.ll
- * RUN: grep {@const_srem = global i64 srem } < %t.ll
- * RUN: grep {@const_frem = global double frem } < %t.ll
- * RUN: grep {@const_and = global i64 and } < %t.ll
- * RUN: grep {@const_or = global i64 or } < %t.ll
- * RUN: grep {@const_xor = global i64 xor } < %t.ll
- * RUN: grep {@const_icmp = global i1 icmp sle } < %t.ll
- * RUN: grep {@const_fcmp = global i1 fcmp ole } < %t.ll
+ (* RUN: grep "@const_neg = global i64 sub" < %t.ll
+ * RUN: grep "@const_nsw_neg = global i64 sub nsw " < %t.ll
+ * RUN: grep "@const_nuw_neg = global i64 sub nuw " < %t.ll
+ * RUN: grep "@const_fneg = global double fsub " < %t.ll
+ * RUN: grep "@const_not = global i64 xor " < %t.ll
+ * RUN: grep "@const_add = global i64 add " < %t.ll
+ * RUN: grep "@const_nsw_add = global i64 add nsw " < %t.ll
+ * RUN: grep "@const_nuw_add = global i64 add nuw " < %t.ll
+ * RUN: grep "@const_fadd = global double fadd " < %t.ll
+ * RUN: grep "@const_sub = global i64 sub " < %t.ll
+ * RUN: grep "@const_nsw_sub = global i64 sub nsw " < %t.ll
+ * RUN: grep "@const_nuw_sub = global i64 sub nuw " < %t.ll
+ * RUN: grep "@const_fsub = global double fsub " < %t.ll
+ * RUN: grep "@const_mul = global i64 mul " < %t.ll
+ * RUN: grep "@const_nsw_mul = global i64 mul nsw " < %t.ll
+ * RUN: grep "@const_nuw_mul = global i64 mul nuw " < %t.ll
+ * RUN: grep "@const_fmul = global double fmul " < %t.ll
+ * RUN: grep "@const_udiv = global i64 udiv " < %t.ll
+ * RUN: grep "@const_sdiv = global i64 sdiv " < %t.ll
+ * RUN: grep "@const_exact_sdiv = global i64 sdiv exact " < %t.ll
+ * RUN: grep "@const_fdiv = global double fdiv " < %t.ll
+ * RUN: grep "@const_urem = global i64 urem " < %t.ll
+ * RUN: grep "@const_srem = global i64 srem " < %t.ll
+ * RUN: grep "@const_frem = global double frem " < %t.ll
+ * RUN: grep "@const_and = global i64 and " < %t.ll
+ * RUN: grep "@const_or = global i64 or " < %t.ll
+ * RUN: grep "@const_xor = global i64 xor " < %t.ll
+ * RUN: grep "@const_icmp = global i1 icmp sle " < %t.ll
+ * RUN: grep "@const_fcmp = global i1 fcmp ole " < %t.ll
- (* RUN: grep {const_trunc.*trunc} < %t.ll
- * RUN: grep {const_sext.*sext} < %t.ll
- * RUN: grep {const_zext.*zext} < %t.ll
- * RUN: grep {const_fptrunc.*fptrunc} < %t.ll
- * RUN: grep {const_fpext.*fpext} < %t.ll
- * RUN: grep {const_uitofp.*uitofp} < %t.ll
- * RUN: grep {const_sitofp.*sitofp} < %t.ll
- * RUN: grep {const_fptoui.*fptoui} < %t.ll
- * RUN: grep {const_fptosi.*fptosi} < %t.ll
- * RUN: grep {const_ptrtoint.*ptrtoint} < %t.ll
- * RUN: grep {const_inttoptr.*inttoptr} < %t.ll
- * RUN: grep {const_bitcast.*bitcast} < %t.ll
+ (* RUN: grep "const_trunc.*trunc" < %t.ll
+ * RUN: grep "const_sext.*sext" < %t.ll
+ * RUN: grep "const_zext.*zext" < %t.ll
+ * RUN: grep "const_fptrunc.*fptrunc" < %t.ll
+ * RUN: grep "const_fpext.*fpext" < %t.ll
+ * RUN: grep "const_uitofp.*uitofp" < %t.ll
+ * RUN: grep "const_sitofp.*sitofp" < %t.ll
+ * RUN: grep "const_fptoui.*fptoui" < %t.ll
+ * RUN: grep "const_fptosi.*fptosi" < %t.ll
+ * RUN: grep "const_ptrtoint.*ptrtoint" < %t.ll
+ * RUN: grep "const_inttoptr.*inttoptr" < %t.ll
+ * RUN: grep "const_bitcast.*bitcast" < %t.ll
- (* RUN: grep {const_size_of.*getelementptr.*null} < %t.ll
- * RUN: grep {const_gep.*getelementptr} < %t.ll
- * RUN: grep {const_select.*select} < %t.ll
- * RUN: grep {const_extractelement.*extractelement} < %t.ll
- * RUN: grep {const_insertelement.*insertelement} < %t.ll
- * RUN: grep {const_shufflevector = global <4 x i32> <i32 0, i32 1, i32 1, i32 0>} < %t.ll
+ (* RUN: grep "const_size_of.*getelementptr.*null" < %t.ll
+ * RUN: grep "const_gep.*getelementptr" < %t.ll
+ * RUN: grep "const_select.*select" < %t.ll
+ * RUN: grep "const_extractelement.*extractelement" < %t.ll
+ * RUN: grep "const_insertelement.*insertelement" < %t.ll
+ * RUN: grep "const_shufflevector = global <4 x i32> <i32 0, i32 1, i32 1, i32 0>" < %t.ll
- (* RUN: grep {%build_add = add i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_nsw_add = add nsw i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_nuw_add = add nuw i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_fadd = fadd float %F1, %F2} < %t.ll
- * RUN: grep {%build_sub = sub i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_nsw_sub = sub nsw i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_nuw_sub = sub nuw i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_fsub = fsub float %F1, %F2} < %t.ll
- * RUN: grep {%build_mul = mul i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_nsw_mul = mul nsw i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_nuw_mul = mul nuw i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_fmul = fmul float %F1, %F2} < %t.ll
- * RUN: grep {%build_udiv = udiv i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_sdiv = sdiv i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_exact_sdiv = sdiv exact i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_fdiv = fdiv float %F1, %F2} < %t.ll
- * RUN: grep {%build_urem = urem i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_srem = srem i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_frem = frem float %F1, %F2} < %t.ll
- * RUN: grep {%build_shl = shl i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_lshl = lshr i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_ashl = ashr i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_and = and i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_or = or i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_xor = xor i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_neg = sub i32 0, %P1} < %t.ll
- * RUN: grep {%build_nsw_neg = sub nsw i32 0, %P1} < %t.ll
- * RUN: grep {%build_nuw_neg = sub nuw i32 0, %P1} < %t.ll
- * RUN: grep {%build_fneg = fsub float .*0.*, %F1} < %t.ll
- * RUN: grep {%build_not = xor i32 %P1, -1} < %t.ll
+ (* RUN: grep "%build_add = add i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_nsw_add = add nsw i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_nuw_add = add nuw i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_fadd = fadd float %F1, %F2" < %t.ll
+ * RUN: grep "%build_sub = sub i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_nsw_sub = sub nsw i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_nuw_sub = sub nuw i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_fsub = fsub float %F1, %F2" < %t.ll
+ * RUN: grep "%build_mul = mul i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_nsw_mul = mul nsw i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_nuw_mul = mul nuw i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_fmul = fmul float %F1, %F2" < %t.ll
+ * RUN: grep "%build_udiv = udiv i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_sdiv = sdiv i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_exact_sdiv = sdiv exact i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_fdiv = fdiv float %F1, %F2" < %t.ll
+ * RUN: grep "%build_urem = urem i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_srem = srem i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_frem = frem float %F1, %F2" < %t.ll
+ * RUN: grep "%build_shl = shl i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_lshl = lshr i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_ashl = ashr i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_and = and i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_or = or i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_xor = xor i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_neg = sub i32 0, %P1" < %t.ll
+ * RUN: grep "%build_nsw_neg = sub nsw i32 0, %P1" < %t.ll
+ * RUN: grep "%build_nuw_neg = sub nuw i32 0, %P1" < %t.ll
+ * RUN: grep "%build_fneg = fsub float .*0.*, %F1" < %t.ll
+ * RUN: grep "%build_not = xor i32 %P1, -1" < %t.ll
- (* RUN: grep {%build_alloca = alloca i32} < %t.ll
- * RUN: grep {%build_array_alloca = alloca i32, i32 %P2} < %t.ll
- * RUN: grep {%build_load = load i32\\* %build_array_alloca} < %t.ll
- * RUN: grep {store i32 %P2, i32\\* %build_alloca} < %t.ll
- * RUN: grep {%build_gep = getelementptr i32\\* %build_array_alloca, i32 %P2} < %t.ll
- * RUN: grep {%build_in_bounds_gep = getelementptr inbounds i32\\* %build_array_alloca, i32 %P2} < %t.ll
- * RUN: grep {%build_struct_gep = getelementptr inbounds.*%build_alloca2, i32 0, i32 1} < %t.ll
+ (* RUN: grep "%build_alloca = alloca i32" < %t.ll
+ * RUN: grep "%build_array_alloca = alloca i32, i32 %P2" < %t.ll
+ * RUN: grep "%build_load = load i32* %build_array_alloca" < %t.ll
+ * RUN: grep "store i32 %P2, i32* %build_alloca" < %t.ll
+ * RUN: grep "%build_gep = getelementptr i32* %build_array_alloca, i32 %P2" < %t.ll
+ * RUN: grep "%build_in_bounds_gep = getelementptr inbounds i32* %build_array_alloca, i32 %P2" < %t.ll
+ * RUN: grep "%build_struct_gep = getelementptr inbounds.*%build_alloca2, i32 0, i32 1" < %t.ll
- (* RUN: grep {%build_trunc = trunc i32 %P1 to i8} < %t.ll
- * RUN: grep {%build_trunc2 = trunc i32 %P1 to i8} < %t.ll
- * RUN: grep {%build_trunc3 = trunc i32 %P1 to i8} < %t.ll
- * RUN: grep {%build_zext = zext i8 %build_trunc to i32} < %t.ll
- * RUN: grep {%build_zext2 = zext i8 %build_trunc to i32} < %t.ll
- * RUN: grep {%build_sext = sext i32 %build_zext to i64} < %t.ll
- * RUN: grep {%build_sext2 = sext i32 %build_zext to i64} < %t.ll
- * RUN: grep {%build_sext3 = sext i32 %build_zext to i64} < %t.ll
- * RUN: grep {%build_uitofp = uitofp i64 %build_sext to float} < %t.ll
- * RUN: grep {%build_sitofp = sitofp i32 %build_zext to double} < %t.ll
- * RUN: grep {%build_fptoui = fptoui float %build_uitofp to i32} < %t.ll
- * RUN: grep {%build_fptosi = fptosi double %build_sitofp to i64} < %t.ll
- * RUN: grep {%build_fptrunc = fptrunc double %build_sitofp to float} < %t.ll
- * RUN: grep {%build_fptrunc2 = fptrunc double %build_sitofp to float} < %t.ll
- * RUN: grep {%build_fpext = fpext float %build_fptrunc to double} < %t.ll
- * RUN: grep {%build_fpext2 = fpext float %build_fptrunc to double} < %t.ll
- * RUN: grep {%build_inttoptr = inttoptr i32 %P1 to i8\\*} < %t.ll
- * RUN: grep {%build_ptrtoint = ptrtoint i8\\* %build_inttoptr to i64} < %t.ll
- * RUN: grep {%build_ptrtoint2 = ptrtoint i8\\* %build_inttoptr to i64} < %t.ll
- * RUN: grep {%build_bitcast = bitcast i64 %build_ptrtoint to double} < %t.ll
- * RUN: grep {%build_bitcast2 = bitcast i64 %build_ptrtoint to double} < %t.ll
- * RUN: grep {%build_bitcast3 = bitcast i64 %build_ptrtoint to double} < %t.ll
- * RUN: grep {%build_bitcast4 = bitcast i64 %build_ptrtoint to double} < %t.ll
- * RUN: grep {%build_pointercast = bitcast i8\\* %build_inttoptr to i16\\*} < %t.ll
+ (* RUN: grep "%build_trunc = trunc i32 %P1 to i8" < %t.ll
+ * RUN: grep "%build_trunc2 = trunc i32 %P1 to i8" < %t.ll
+ * RUN: grep "%build_trunc3 = trunc i32 %P1 to i8" < %t.ll
+ * RUN: grep "%build_zext = zext i8 %build_trunc to i32" < %t.ll
+ * RUN: grep "%build_zext2 = zext i8 %build_trunc to i32" < %t.ll
+ * RUN: grep "%build_sext = sext i32 %build_zext to i64" < %t.ll
+ * RUN: grep "%build_sext2 = sext i32 %build_zext to i64" < %t.ll
+ * RUN: grep "%build_sext3 = sext i32 %build_zext to i64" < %t.ll
+ * RUN: grep "%build_uitofp = uitofp i64 %build_sext to float" < %t.ll
+ * RUN: grep "%build_sitofp = sitofp i32 %build_zext to double" < %t.ll
+ * RUN: grep "%build_fptoui = fptoui float %build_uitofp to i32" < %t.ll
+ * RUN: grep "%build_fptosi = fptosi double %build_sitofp to i64" < %t.ll
+ * RUN: grep "%build_fptrunc = fptrunc double %build_sitofp to float" < %t.ll
+ * RUN: grep "%build_fptrunc2 = fptrunc double %build_sitofp to float" < %t.ll
+ * RUN: grep "%build_fpext = fpext float %build_fptrunc to double" < %t.ll
+ * RUN: grep "%build_fpext2 = fpext float %build_fptrunc to double" < %t.ll
+ * RUN: grep "%build_inttoptr = inttoptr i32 %P1 to i8*" < %t.ll
+ * RUN: grep "%build_ptrtoint = ptrtoint i8* %build_inttoptr to i64" < %t.ll
+ * RUN: grep "%build_ptrtoint2 = ptrtoint i8* %build_inttoptr to i64" < %t.ll
+ * RUN: grep "%build_bitcast = bitcast i64 %build_ptrtoint to double" < %t.ll
+ * RUN: grep "%build_bitcast2 = bitcast i64 %build_ptrtoint to double" < %t.ll
+ * RUN: grep "%build_bitcast3 = bitcast i64 %build_ptrtoint to double" < %t.ll
+ * RUN: grep "%build_bitcast4 = bitcast i64 %build_ptrtoint to double" < %t.ll
+ * RUN: grep "%build_pointercast = bitcast i8* %build_inttoptr to i16*" < %t.ll
- (* RUN: grep {%build_icmp_ne = icmp ne i32 %P1, %P2} < %t.ll
- * RUN: grep {%build_icmp_sle = icmp sle i32 %P2, %P1} < %t.ll
- * RUN: grep {%build_fcmp_false = fcmp false float %F1, %F2} < %t.ll
- * RUN: grep {%build_fcmp_true = fcmp true float %F2, %F1} < %t.ll
- * RUN: grep {%build_is_null.*= icmp eq.*%X0,.*null} < %t.ll
- * RUN: grep {%build_is_not_null = icmp ne i8\\* %X1, null} < %t.ll
- * RUN: grep {%build_ptrdiff} < %t.ll
+ (* RUN: grep "%build_icmp_ne = icmp ne i32 %P1, %P2" < %t.ll
+ * RUN: grep "%build_icmp_sle = icmp sle i32 %P2, %P1" < %t.ll
+ * RUN: grep "%build_fcmp_false = fcmp false float %F1, %F2" < %t.ll
+ * RUN: grep "%build_fcmp_true = fcmp true float %F2, %F1" < %t.ll
+ * RUN: grep "%build_is_null.*= icmp eq.*%X0,.*null" < %t.ll
+ * RUN: grep "%build_is_not_null = icmp ne i8* %X1, null" < %t.ll
+ * RUN: grep "%build_ptrdiff" < %t.ll
- (* RUN: grep {%build_call = tail call cc63 i32 @.*(i32 signext %P2, i32 %P1)} < %t.ll
- * RUN: grep {%build_select = select i1 %build_icmp, i32 %P1, i32 %P2} < %t.ll
- * RUN: grep {%build_va_arg = va_arg i8\\*\\* null, i32} < %t.ll
- * RUN: grep {%build_extractelement = extractelement <4 x i32> %Vec1, i32 %P2} < %t.ll
- * RUN: grep {%build_insertelement = insertelement <4 x i32> %Vec1, i32 %P1, i32 %P2} < %t.ll
- * RUN: grep {%build_shufflevector = shufflevector <4 x i32> %Vec1, <4 x i32> %Vec2, <4 x i32> <i32 1, i32 1, i32 0, i32 0>} < %t.ll
- * RUN: grep {%build_insertvalue0 = insertvalue.*%bl, i32 1, 0} < %t.ll
- * RUN: grep {%build_extractvalue = extractvalue.*%build_insertvalue1, 1} < %t.ll
+ (* RUN: grep "%build_call = tail call cc63 i32 @.*(i32 signext %P2, i32 %P1)" < %t.ll
+ * RUN: grep "%build_select = select i1 %build_icmp, i32 %P1, i32 %P2" < %t.ll
+ * RUN: grep "%build_va_arg = va_arg i8** null, i32" < %t.ll
+ * RUN: grep "%build_extractelement = extractelement <4 x i32> %Vec1, i32 %P2" < %t.ll
+ * RUN: grep "%build_insertelement = insertelement <4 x i32> %Vec1, i32 %P1, i32 %P2" < %t.ll
+ * RUN: grep "%build_shufflevector = shufflevector <4 x i32> %Vec1, <4 x i32> %Vec2, <4 x i32> <i32 1, i32 1, i32 0, i32 0>" < %t.ll
+ * RUN: grep "%build_insertvalue0 = insertvalue.*%bl, i32 1, 0" < %t.ll
+ * RUN: grep "%build_extractvalue = extractvalue.*%build_insertvalue1, 1" < %t.ll