2014-03-06 00:23:33 +00:00
|
|
|
; RUN: llc < %s -march=ppc32 -mcpu=ppc32 | FileCheck %s
|
2014-03-06 00:45:19 +00:00
|
|
|
; RUN: llc < %s -march=ppc32 -mcpu=ppc32 -mtriple=powerpc-darwin | FileCheck %s -check-prefix=CHECK-D
|
2014-03-06 00:23:33 +00:00
|
|
|
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
|
|
|
|
|
2014-03-06 00:45:19 +00:00
|
|
|
; CHECK-D-LABEL: @main
|
|
|
|
; CHECK-D: li r4, 0
|
|
|
|
; CHECK-D: bl L_printf$stub
|
|
|
|
|