[llvm] [IR] Add new Range attribute using new ConstantRange Attribute type (PR #83171)

Andreas Jonson via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 09:02:34 PST 2024


================
@@ -0,0 +1,8 @@
+; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
+
+; Check the error message on full range attribute.
+
+; CHECK: The range should not represent the full or empty set!
+define void @range_empty(i8 range(i8,0,0) %a) {
+  ret void
+}
----------------
andjo403 wrote:

added some more tests

https://github.com/llvm/llvm-project/pull/83171


More information about the llvm-commits mailing list