blob: 23935b96efd753010ea9c8a08c88ef635bcd1923 [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 | \
Dan Gohman28beeea2007-08-15 13:36:28 +00004; RUN: grep mov | count 3
Jim Grosbachf3b33d02009-11-21 21:40:08 +00005; RUN: llc < %s -mtriple=arm-apple-darwin | grep mov | count 3
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*)