LLVM-clang fails to compile Assembly file
LLVM-clang fails to compile Assembly file
- Subject: LLVM-clang fails to compile Assembly file
- From: Arun <email@hidden>
- Date: Tue, 04 Dec 2012 10:51:33 +0530
Hi All
I am trying to build a project which comprised a ".c" and ".S" file. If i use Xcode 3.x which has gcc, the project complies perfectly.
If i migrate the project to use LLVM compiler using Xcode 4.4, it fails to compile the instruction "
movdqu $2*16(íx), %xmm7". The below is the code snippet that i am using.
//
//Â Hello.s
//Â Assembly
//
.globl _test_function
.macro test_macro zero, one, two
  Â
movdqu $2*16(íx), %xmm7.endm
_test_function:
  Â
   test_macro 0, 0, 0
   retÂ
//
//Â main.c
//Â Assembly
//
#include <stdio.h>
extern int test_function();
int main(int argc, const char * argv[])
{
  Â
   printf("Return value %d\n", test_function());  Â
   return 0;
}
Not sure what is happening with LLVM compiler.
Thanks
Arun KA
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden