2013-11-28 00:56:37 +00:00
|
|
|
; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=pic -mips16-constant-islands=false -O3 < %s | FileCheck %s -check-prefix=16
|
2012-10-26 03:09:34 +00:00
|
|
|
|
|
|
|
@.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
|
|
|
|
|
|
|
|
define i32 @main() nounwind {
|
|
|
|
entry:
|
|
|
|
%call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32 1075344593) nounwind
|
2013-10-12 02:19:08 +00:00
|
|
|
; 16: lw ${{[0-9]+}}, 1f
|
|
|
|
; 16: b 2f
|
|
|
|
; 16: .align 2
|
|
|
|
; 16: 1: .word 1075344593
|
|
|
|
; 16: 2:
|
|
|
|
|
2012-10-26 03:09:34 +00:00
|
|
|
%call1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32 -1075344593) nounwind
|
2013-10-12 02:19:08 +00:00
|
|
|
|
|
|
|
; 16: lw ${{[0-9]+}}, 1f
|
|
|
|
; 16: b 2f
|
|
|
|
; 16: .align 2
|
|
|
|
; 16: 1: .word -1075344593
|
|
|
|
; 16: 2:
|
2012-10-26 03:09:34 +00:00
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @printf(i8* nocapture, ...) nounwind
|