2006-12-02 04:23:10 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
2007-01-19 09:20:23 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-linux | grep mov | wc -l | grep 1 &&
|
2007-01-31 13:12:46 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin --disable-fp-elim | grep mov | wc -l | grep 2
|
2006-08-04 12:48:42 +00:00
|
|
|
|
2007-01-19 09:20:23 +00:00
|
|
|
%str = internal constant [12 x sbyte] c"Hello World\00"
|
2006-08-04 12:48:42 +00:00
|
|
|
|
|
|
|
int %main() {
|
2007-01-19 09:20:23 +00:00
|
|
|
%tmp = call int %puts( sbyte* getelementptr ([12 x sbyte]* %str, int 0, uint 0) )
|
2006-08-04 12:48:42 +00:00
|
|
|
ret int 0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare int %puts(sbyte*)
|