X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FARM%2Fhello.ll;h=893b4266ac3ce0a74c2bed50879069027435e232;hb=5387f2e4f3b1982ee7236fa8db92f9c5152dc058;hp=61354a0425cc010e374ebf7714f338a9fc41f9af;hpb=341b864c8d3868a17d5dbcdb4bac40c6586b60cf;p=oota-llvm.git diff --git a/test/CodeGen/ARM/hello.ll b/test/CodeGen/ARM/hello.ll index 61354a0425c..893b4266ac3 100644 --- a/test/CodeGen/ARM/hello.ll +++ b/test/CodeGen/ARM/hello.ll @@ -1,13 +1,14 @@ -; RUN: llvm-as < %s | llc -march=arm && -; RUN: llvm-as < %s | llc -march=arm | grep mov | wc -l | grep 1 -%str = internal constant [12 x sbyte] c"Hello World\00" ; <[12 x sbyte]*> [#uses=1] +; RUN: llc < %s -march=arm +; RUN: llc < %s -mtriple=armv6-linux-gnueabi | grep mov | count 1 +; RUN: llc < %s -mtriple=armv6-linux-gnu --disable-fp-elim | \ +; RUN: grep mov | count 2 +; RUN: llc < %s -mtriple=armv6-apple-ios | grep mov | count 2 -implementation ; Functions: +@str = internal constant [12 x i8] c"Hello World\00" -int %main() { -entry: - %tmp = call int %puts( sbyte* getelementptr ([12 x sbyte]* %str, int 0, uint 0) ) ; [#uses=0] - ret int 0 +define i32 @main() { + %tmp = call i32 @puts( i8* getelementptr ([12 x i8]* @str, i32 0, i64 0) ) ; [#uses=0] + ret i32 0 } -declare int %puts(sbyte*) +declare i32 @puts(i8*)