search for: mipsa

Displaying 2 results from an estimated 2 matches for "mipsa".

Did you mean: mips
2015 Mar 03
5
[LLVMdev] Inline Assembly: Memory constraints with offsets
Hi, I'm trying to implement the ZC inline assembly constraint for Mips. This constraint is a memory constraint that expands to an address with an offset (the range of the offset varies according to the subtarget), so the inline assembly in: int data[10]; void ZC(void) { asm volatile ("foo %0 %1" : : "ZC"(data[1]), "ZC"(data[2])); } Should expand to
2015 Mar 04
2
[LLVMdev] Inline Assembly: Memory constraints with offsets
...before the inline assembly. > > > > Does anyone have any suggestions as to how I can get the offset inside > > the inline assembly? > > How are you actually getting this to compile? I just built clang and > I'm getting an error: > > clang-3.6 -target mips -S mipsa.c > mipsa.c:4:33: error: invalid input constraint 'ZC' in asm > asm volatile ("foo %0 %1" : : "ZC"(data[1]), "ZC"(data[2])); > ^ > 1 error generated. > > > It doesn't seem that the function "va...