mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Fixup PPC Darwin i1 argument handling
Like on other targets, we need to zero_extend/truncate i1 args before copying them to GPRs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203045 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
; RUN: llc < %s -march=ppc32 -mcpu=ppc32 | FileCheck %s
|
||||
; RUN: llc < %s -march=ppc32 -mcpu=ppc32 -mtriple=powerpc-darwin | FileCheck %s -check-prefix=CHECK-D
|
||||
target triple = "powerpc-unknown-linux-gnu"
|
||||
|
||||
declare void @printf(i8*, ...)
|
||||
@@ -13,3 +14,7 @@ define void @main() {
|
||||
; CHECK-DAG: crxor 6, 6, 6
|
||||
; CHECK: bl printf
|
||||
|
||||
; CHECK-D-LABEL: @main
|
||||
; CHECK-D: li r4, 0
|
||||
; CHECK-D: bl L_printf$stub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user