http://llvm.org/bugs/show_bug.cgi?id=19387

            Bug ID: 19387
           Summary: [ARM64] Assertion `Subtarget->isTargetDarwin() &&
                    "automatic va_arg instruction only works on Darwin"'
                    failed.
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Test case:
--------------------------------------------------------------------
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
target triple = "arm64-none-linux-gnu"

%struct.__va_list.1 = type { i8*, i8*, i8*, i32, i32 }

define void @vaarg(%struct.__va_list.1* byval nocapture %ap) 
{
entry:
  %0 = va_arg %struct.__va_list.1* %ap, i32*
  ret void
}
---------------------------------------------------------------------

Reproduce with llc -O3 test.ll

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to