blob: 57a2e788a301cc14f10595ba7c3181cac8d9fecf [file] [log] [blame]
Daniel Sanders8008de52015-10-15 14:34:23 +00001; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -relocation-model=pic -mips16-constant-islands=false -O3 < %s | FileCheck %s -check-prefix=16
Reed Kotlere47873a2012-10-26 03:09:34 +00002
3@.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
4
5define i32 @main() nounwind {
6entry:
David Blaikie23af6482015-04-16 23:24:18 +00007 %call = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 1075344593) nounwind
Reed Kotlerde647742013-10-12 02:19:08 +00008; 16: lw ${{[0-9]+}}, 1f
9; 16: b 2f
10; 16: .align 2
11; 16: 1: .word 1075344593
12; 16: 2:
13
David Blaikie23af6482015-04-16 23:24:18 +000014 %call1 = tail call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i32 -1075344593) nounwind
Reed Kotlerde647742013-10-12 02:19:08 +000015
16; 16: lw ${{[0-9]+}}, 1f
17; 16: b 2f
18; 16: .align 2
19; 16: 1: .word -1075344593
20; 16: 2:
Reed Kotlere47873a2012-10-26 03:09:34 +000021 ret i32 0
22}
23
24declare i32 @printf(i8* nocapture, ...) nounwind