Mercurial > hg > Members > tobaru > cbc > CbC_llvm
diff test/CodeGen/Mips/i32k.ll @ 0:95c75e76d11b
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | e4204d083e25 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/CodeGen/Mips/i32k.ll Thu Dec 12 13:56:28 2013 +0900 @@ -0,0 +1,24 @@ +; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16 + +@.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 +; 16: lw ${{[0-9]+}}, 1f +; 16: b 2f +; 16: .align 2 +; 16: 1: .word 1075344593 +; 16: 2: + + %call1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32 -1075344593) nounwind + +; 16: lw ${{[0-9]+}}, 1f +; 16: b 2f +; 16: .align 2 +; 16: 1: .word -1075344593 +; 16: 2: + ret i32 0 +} + +declare i32 @printf(i8* nocapture, ...) nounwind