[llvm] 2c5c06c - [X86] Add PR46315 test case

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 16 05:14:04 PDT 2021


Author: Simon Pilgrim
Date: 2021-08-16T13:13:56+01:00
New Revision: 2c5c06c5cfca7988b2d69a78459be27beb35a86f

URL: https://github.com/llvm/llvm-project/commit/2c5c06c5cfca7988b2d69a78459be27beb35a86f
DIFF: https://github.com/llvm/llvm-project/commit/2c5c06c5cfca7988b2d69a78459be27beb35a86f.diff

LOG: [X86] Add PR46315 test case

Added: 
    llvm/test/CodeGen/X86/pr46315.ll

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/pr46315.ll b/llvm/test/CodeGen/X86/pr46315.ll
new file mode 100644
index 0000000000000..e42c19fb404b6
--- /dev/null
+++ b/llvm/test/CodeGen/X86/pr46315.ll
@@ -0,0 +1,17 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
+
+define void @PR46315() {
+; CHECK-LABEL: PR46315:
+; CHECK:       # %bb.0:
+; CHECK-NEXT:    xorl %edi, %edi
+; CHECK-NEXT:    xorl %esi, %esi
+; CHECK-NEXT:    movl $2, %edx
+; CHECK-NEXT:    movl $3, %ecx
+; CHECK-NEXT:    movl $1, %r8d
+; CHECK-NEXT:    jmp h at PLT # TAILCALL
+  tail call void @h(i32 0, i32 0, i32 2, i32 3, i32 1)
+  ret void
+}
+
+declare void @h(i32, i32, i32, i32, i32)


        


More information about the llvm-commits mailing list