Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/compiler/promoteInt/run_promote_int_pass.bash
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ CHIP_VERIFY_MODE=off ${LLVM_OPT} -load-pass-plugin "${HIP_SPV_PASSES_LIB}" \
${LLVM_DIS} "${OUTPUT_BC}" -o "${OUTPUT_LL}" || exit 1

# Check for non-standard integer types
NON_STD_INT_COUNT=$(grep -c -E 'i[0-9]+(?<!i1|i8|i16|i32|i64)' "${OUTPUT_LL}" || true)
NON_STD_INT_COUNT=$(perl -0pe 's/;[^\n]*|"[^"]*"//g' "${OUTPUT_LL}" | sed -E 's/^[-$.A-Za-z0-9_]+://' | grep -oE '(^|[^%@!.$A-Za-z0-9_-])i[0-9]+' | grep -cvE 'i(1|8|16|32|64)$' || true)
if [ "${NON_STD_INT_COUNT}" -gt 0 ]; then
echo "ERROR: Found ${NON_STD_INT_COUNT} non-standard integer types in output"
echo "See ${OUTPUT_LL} for details"
Expand Down
Loading