1 // RUN: llvm-tblgen -gen-intrinsic-enums -I %p/../../include %s -DTEST_INTRINSICS_SUPPRESS_DEFS | FileCheck %s --check-prefix=CHECK-ENUM
2 // RUN: llvm-tblgen -gen-intrinsic-impl -I %p/../../include %s -DTEST_INTRINSICS_SUPPRESS_DEFS > /dev/null 2>&1
3 // RUN: not llvm-tblgen -gen-intrinsic-impl -I %p/../../include %s -DTEST_INTRINSICS_SUPPRESS_DEFS -DENABLE_ERROR 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
7 include "llvm/IR/Intrinsics.td"
9 // Make sure we can return up to 9 values.
10 // CHECK-ENUM: returns_9_results = {{[0-9]+}}, // llvm.returns.9.results
11 def int_returns_9_results : Intrinsic<
12 !listsplat(llvm_anyint_ty, 9),
13 [], [], "llvm.returns.9.results">;
16 // CHECK-ERROR: error: intrinsics can only return upto 9 values, 'int_returns_10_results' returns 10 values
17 // CHECK-ERROR-NEXT: def int_returns_10_results : Intrinsic<
18 def int_returns_10_results : Intrinsic<
19 !listsplat(llvm_anyint_ty, 10),
20 [], [], "llvm.returns.10.results">;