blob: 16231da39b7cf81d484c274e74a9b59124c14654 [file] [log] [blame]
Reid Spencer6e87ec42007-04-16 17:36:08 +00001; RUN: llvm-as < %s | llc -march=arm
Dan Gohmanf9dd1702007-08-15 13:36:28 +00002; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | grep mov | count 1
Reid Spencer6e87ec42007-04-16 17:36:08 +00003; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu --disable-fp-elim | \
Dan Gohmanf9dd1702007-08-15 13:36:28 +00004; RUN: grep mov | count 3
5; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep mov | count 2
Rafael Espindola2bcb8c02006-08-04 12:48:42 +00006
Evan Cheng53ac41c2007-01-31 22:27:07 +00007@str = internal constant [12 x i8] c"Hello World\00"
Rafael Espindola2bcb8c02006-08-04 12:48:42 +00008
Evan Cheng53ac41c2007-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 Espindola2bcb8c02006-08-04 12:48:42 +000012}
13
Evan Cheng53ac41c2007-01-31 22:27:07 +000014declare i32 @puts(i8*)