zpu: first sign of being able to build a .S file
commit416f11369dbb2afa4db49f8ecc23e5a0184800ff
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 9 Nov 2010 00:00:59 +0000 (9 01:00 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 9 Nov 2010 00:00:59 +0000 (9 01:00 +0100)
treed1ed1863ee312c6bdbb36c6bbb506099cdd53305
parentd635696ccf72273685ff78cfb6e022082fa42926
zpu: first sign of being able to build a .S file

clang  -ccc-host-triple zpu-none-none test.c -S

oyvind@fiend:~/workspace/lbuild$ cat test.s
.file "test.c"
.text
.globl foo
.align 2
.type foo,@function
$tmp0:
.size foo, ($tmp0)-foo

.type c,@object
.comm c,4,4
.type b,@object
.comm b,4,4

oyvind@fiend:~/workspace/lbuild$ cat test.c
int b;
int c;
int foo(void)
{
  return c+b;
}

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
lib/Target/ZPU/ZPUISelLowering.cpp [new file with mode: 0644]
lib/Target/ZPU/ZPUISelLowering.h [new file with mode: 0644]
lib/Target/ZPU/ZPUTargetMachine.cpp
lib/Target/ZPU/ZPUTargetMachine.h