aboutsummaryrefslogtreecommitdiff
path: root/i386-asm.h
Commit message (Collapse)AuthorAgeFilesLines
* SSE opcodes to TCC assembler (i386, x86_64)seyko2015-09-231-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | patch from Anaƫl Seghezzi a test program: ============================ #include <stdio.h> struct fl4{ float x, y, z, w; }; void asm_test(void) { struct fl4 v1, v2, v3; v1.x = 0.1; v1.y = 0.2; v1.z = 0.4; v1.w = 0.3; v2.x = 0.11; v2.y = 0.0; v2.z = 0.01; v2.w = 0.04; asm volatile ( "movups %0, %%xmm0;" "movups %1, %%xmm1;" "addps %%xmm1, %%xmm0;" "movups %%xmm0, %2" :: "g" (v1), "g" (v2), "g" (v3) : "memory"); printf("sse fl4 add : %f %f %f %f\n", v3.x, v3.y, v3.z, v3.w); printf("expected : %f %f %f %f\n", v1.x+v2.x, v1.y+v2.y, v1.z+v2.z, v1.w+v2.w); } int main() { asm_test(); } /* sse fl4 add : 0.210000 0.200000 0.410000 0.340000 expected : 0.210000 0.200000 0.410000 0.340000 */ ============================
* Revert all of my changes to directories & codingstyle.gus knight2015-07-291-0/+474
|
* Reorganize the source tree.gus knight2015-07-271-474/+0
| | | | | | | | | | * Documentation is now in "docs". * Source code is now in "src". * Misc. fixes here and there so that everything still works. I think I got everything in this commit, but I only tested this on Linux (Make) and Windows (CMake), so I might've messed something up on other platforms...
* Trim trailing spaces everywhere.gus knight2015-07-271-5/+5
|
* Allow tcc to understand a setob,... opcodes as alias to seto,...seyko2015-01-061-0/+1
| | | | | | PS: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20101122/112576.html This is fix PR8686 for llvm: accepting a 'b' suffix at the end of all the setcc instructions.
* Detect correct instruction with incorrect operandsThomas Preud'homme2013-09-241-1/+1
| | | | | | Display a different warning when an instruction is recognized by tcc but the operands found do not correspond to the constraints of the instruction.
* i386-asm: support "pause" opcodeJoe Soroka2011-02-241-0/+1
|
* tccasm: accept "fmul/fadd st(0),st(n)" (dietlibc ipow/atanh)Joe Soroka2011-02-011-0/+2
|
* tccasm: allow one-line prefix+op things like "rep stosb"Joe Soroka2011-02-011-2/+2
|
* i386-asm: accept retl as a synonym for retJoe Soroka2011-01-211-0/+2
|
* integrate x86_64-asm.c into i386-asm.cgrischka2009-12-191-10/+19
| | | | | Also, disable 16bit support for now as it causes bugs in 32bit mode. #define I386_ASM_16 if you want it.
* fix 32bit asmgrischka2009-11-141-0/+4
| | | | | | | The new 16bit code was causing wrong 0x66 prefixes in 32bit code. The fix possibly breaks the feature on 16bit asm.
* Fixed compilation error in i386-asm.cFrederic Feret2009-11-131-2/+2
|
* added 16-bit x86 assembly supportFrederic Feret2009-11-131-6/+15
|
* push/pop fixes - added fxsave and fxrstorbellard2004-10-181-4/+6
|
* asm supportbellard2003-01-061-0/+444