[PATCH] D110408: [update_llc_test_checks] Baseline test for D100027

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 28 09:57:56 PDT 2021


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGee3109b044a2: [update_llc_test_checks] Baseline test for D100027 (authored by arichardson).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110408/new/

https://reviews.llvm.org/D110408

Files:
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/mips64_eh.ll
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/mips64_eh.ll.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/mips64_eh.test


Index: llvm/test/tools/UpdateTestChecks/update_llc_test_checks/mips64_eh.test
===================================================================
--- /dev/null
+++ llvm/test/tools/UpdateTestChecks/update_llc_test_checks/mips64_eh.test
@@ -0,0 +1,5 @@
+# REQUIRES: mips-registered-target
+## Check that we handle MIPS64 assembly output with an EH asm prologue
+
+# RUN: cp -f %S/Inputs/mips64_eh.ll %t.ll && %update_llc_test_checks %t.ll
+# RUN: diff -u %S/Inputs/mips64_eh.ll.expected %t.ll
Index: llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/mips64_eh.ll.expected
===================================================================
--- /dev/null
+++ llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/mips64_eh.ll.expected
@@ -0,0 +1,16 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=mips64-unknown-linux < %s | FileCheck %s
+; FIXME: doesn't generate any CHECK lines
+
+define i32 @main() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*){
+  %1 = invoke i32 @foo() to label %good unwind label %bad
+good:
+  ret i32 5
+bad:
+  %2 = landingpad { i8*, i32 }
+  cleanup
+  resume { i8*, i32 } %2
+}
+
+declare i32 @foo()
+declare i32 @__gxx_personality_v0(...)
Index: llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/mips64_eh.ll
===================================================================
--- /dev/null
+++ llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/mips64_eh.ll
@@ -0,0 +1,15 @@
+; RUN: llc -mtriple=mips64-unknown-linux < %s | FileCheck %s
+; FIXME: doesn't generate any CHECK lines
+
+define i32 @main() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*){
+  %1 = invoke i32 @foo() to label %good unwind label %bad
+good:
+  ret i32 5
+bad:
+  %2 = landingpad { i8*, i32 }
+  cleanup
+  resume { i8*, i32 } %2
+}
+
+declare i32 @foo()
+declare i32 @__gxx_personality_v0(...)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110408.375620.patch
Type: text/x-patch
Size: 1938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210928/02588bfe/attachment.bin>


More information about the llvm-commits mailing list