• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=ppc32 -mcpu=ppc32 | FileCheck %s
2; RUN: llc < %s -march=ppc32 -mcpu=ppc32 -mtriple=powerpc-darwin9 | FileCheck %s -check-prefix=CHECK-D
3target triple = "powerpc-unknown-linux-gnu"
4
5declare void @printf(i8*, ...)
6
7define void @main() {
8  call void (i8*, ...) @printf(i8* undef, i1 false)
9  ret void
10}
11
12; CHECK-LABEL: @main
13; CHECK-DAG: li 4, 0
14; CHECK-DAG: crxor 6, 6, 6
15; CHECK: bl printf
16
17; CHECK-D-LABEL: @main
18; CHECK-D: li r4, 0
19; CHECK-D: bl _printf
20
21