aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC/remat-imm.ll
blob: 486495e3146e36c512bd9c1e730b2945af0c3b38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: llc < %s | FileCheck %s
; ModuleID = 'test.c'
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32"
target triple = "powerpc-unknown-linux"

@.str = private unnamed_addr constant [6 x i8] c"%d,%d\00", align 1

define i32 @main() nounwind {
entry:
; CHECK: li 4, 128
; CHECK-NOT: mr 4, {{.*}}
  %call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i32 128, i32 128) nounwind
  ret i32 0
}

declare i32 @printf(i8* nocapture, ...) nounwind