blob: bfed7a6630b4bb6f9e1b02874107cca98ceeb96f [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm
2; RUN: llc < %s -mtriple=arm-linux-gnueabi | grep mov | count 1
3; RUN: llc < %s -mtriple=arm-linux-gnu --disable-fp-elim | \
Evan Chengab5c7032010-11-22 18:12:04 +00004; RUN: grep mov | count 2
Jim Grosbach21ce2e32009-11-21 23:34:09 +00005; RUN: llc < %s -mtriple=arm-apple-darwin | grep mov | count 2
Rafael Espindola341b8642006-08-04 12:48:42 +00006
Evan Cheng100c2102007-01-31 22:27:07 +00007@str = internal constant [12 x i8] c"Hello World\00"
Rafael Espindola341b8642006-08-04 12:48:42 +00008
Evan Cheng100c2102007-01-31 22:27:07 +00009define i32 @main() {
10 %tmp = call i32 @puts( i8* getelementptr ([12 x i8]* @str, i32 0, i64 0) ) ; <i32> [#uses=0]
11 ret i32 0
Rafael Espindola341b8642006-08-04 12:48:42 +000012}
13
Evan Cheng100c2102007-01-31 22:27:07 +000014declare i32 @puts(i8*)