[llvm] [ORC] Add signext on @sum() arguments in test. (PR #113308)

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 15:44:38 PDT 2024


================
@@ -90,6 +90,35 @@ class OrcCAPITestBase : public testing::Test {
 
     LLVMOrcDisposeLLJIT(J);
     TargetSupported = true;
+
+    // Create test functions in text format, with the proper extension
+    // attributes.
+    if (SumExample.empty()) {
+      std::string I32RetExt = "";
+      std::string I32ArgExt = "";
+      if (StringRef(TargetTriple).starts_with("s390x-ibm-linux"))
+        I32RetExt = I32ArgExt = "signext ";
----------------
lhames wrote:

Just re-read your comment -- I think a common utility like the above could be handy, but doesn't apply in this C API test where we don't have an `llvm::Triple` available.

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


More information about the llvm-commits mailing list