• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: LLVM-clang fails to compile Assembly file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LLVM-clang fails to compile Assembly file


  • Subject: Re: LLVM-clang fails to compile Assembly file
  • From: Luca Ciciriello <email@hidden>
  • Date: Tue, 04 Dec 2012 08:23:32 +0100

Further, if I switch to LLVM-gcc 4.2 in Xcode 4.5.2 all builds correctly.

Luca.


On Dec 4, 2012, at 8:20 AM, Luca Ciciriello <email@hidden> wrote:

Same error with Xcode 4.5.2:

<instantiation>:2:17: error: unexpected token in argument list
    movdqu $2*16(íx), %xmm7
                ^

Luca


On Dec 4, 2012, at 6:21 AM, Arun <email@hidden> wrote:

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
  • Follow-Ups:
    • Re: LLVM-clang fails to compile Assembly file
      • From: Arun <email@hidden>
References: 
 >LLVM-clang fails to compile Assembly file (From: Arun <email@hidden>)

  • Prev by Date: Re: LLVM-clang fails to compile Assembly file
  • Next by Date: Re: LLVM-clang fails to compile Assembly file
  • Previous by thread: Re: LLVM-clang fails to compile Assembly file
  • Next by thread: Re: LLVM-clang fails to compile Assembly file
  • Index(es):
    • Date
    • Thread