mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
025c1cefca
When copying an i1 value into a GPR for a vaarg call, we need to explicitly zero-extend the i1 value (otherwise an invalid CRBIT -> GPR copy will be generated). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203041 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
310 B
LLVM
16 lines
310 B
LLVM
; RUN: llc < %s -march=ppc32 -mcpu=ppc32 | FileCheck %s
|
|
target triple = "powerpc-unknown-linux-gnu"
|
|
|
|
declare void @printf(i8*, ...)
|
|
|
|
define void @main() {
|
|
call void (i8*, ...)* @printf(i8* undef, i1 false)
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: @main
|
|
; CHECK-DAG li 4, 0
|
|
; CHECK-DAG: crxor 6, 6, 6
|
|
; CHECK: bl printf
|
|
|