case bytecode::Section::kIR:
return "IR (4)";
default:
- return ("Unknown (" + Twine(sectionID) + ")").str();
+ return ("Unknown (" + Twine(static_cast<unsigned>(sectionID)) + ")").str();
}
}
// Update the number of elements in the current byte grouping. Reminder
// that varint encodes 7-bits per byte, so that's how we compute the
// number of elements in each byte grouping.
- elementsInByteGroup = (1 << (7 * i)) - elementsInByteGroup;
+ elementsInByteGroup = (1ULL << (7ULL * i)) - elementsInByteGroup;
// Slice out the sub-set of elements that are in the current byte grouping
// to be sorted.
// RUN: mlir-opt -allow-unregistered-dialect -emit-bytecode %s | mlir-opt -allow-unregistered-dialect | FileCheck %s
+// Bytecode currently does not support big-endian platforms
+// XFAIL: s390x-
+
// CHECK-LABEL: "bytecode.test1"
// CHECK-NEXT: "bytecode.empty"() : () -> ()
// CHECK-NEXT: "bytecode.attributes"() {attra = 10 : i64, attrb = #bytecode.attr} : () -> ()
// This file contains various failure test cases related to the structure of
// the dialect section.
+// Bytecode currently does not support big-endian platforms
+// XFAIL: s390x-
+
//===--------------------------------------------------------------------===//
// Dialect Name
//===--------------------------------------------------------------------===//
// This file contains various failure test cases related to the structure of
// the IR section.
+// Bytecode currently does not support big-endian platforms
+// XFAIL: s390x-
+
//===--------------------------------------------------------------------===//
// Operations
//===--------------------------------------------------------------------===//
// This file contains various failure test cases related to the structure of
// the string section.
+// Bytecode currently does not support big-endian platforms
+// XFAIL: s390x-
+
//===--------------------------------------------------------------------===//
// Count
//===--------------------------------------------------------------------===//
// This file contains various failure test cases related to the structure of
// a bytecode file.
+// Bytecode currently does not support big-endian platforms
+// XFAIL: s390x-
+
//===--------------------------------------------------------------------===//
// Version
//===--------------------------------------------------------------------===//
// This file contains various failure test cases related to the structure of
// the attribute/type offset section.
+// Bytecode currently does not support big-endian platforms
+// XFAIL: s390x-
+
//===--------------------------------------------------------------------===//
// Offset
//===--------------------------------------------------------------------===//
// This file contains various failure test cases related to the structure of
// the attribute/type offset section.
+// Bytecode currently does not support big-endian platforms
+// XFAIL: s390x-
+
//===--------------------------------------------------------------------===//
// Index
//===--------------------------------------------------------------------===//