platform/upstream/orc.git
15 years agosse: fix flag generation
David Schleef [Mon, 25 May 2009 22:30:59 +0000 (15:30 -0700)]
sse: fix flag generation

15 years agoseparate mmx/sse code out of x86.c
David Schleef [Mon, 25 May 2009 21:41:29 +0000 (14:41 -0700)]
separate mmx/sse code out of x86.c

15 years agosse: convert from X86_ECX to gp_tmpreg
David Schleef [Mon, 25 May 2009 21:08:51 +0000 (14:08 -0700)]
sse: convert from X86_ECX to gp_tmpreg

15 years agosse: convert to emission functions
David Schleef [Mon, 25 May 2009 20:49:47 +0000 (13:49 -0700)]
sse: convert to emission functions

15 years agosse: move more sse emission functions to orcsse.c
David Schleef [Mon, 25 May 2009 20:34:16 +0000 (13:34 -0700)]
sse: move more sse emission functions to orcsse.c

15 years agosse: use orc_sse emission functions
David Schleef [Mon, 25 May 2009 19:46:30 +0000 (12:46 -0700)]
sse: use orc_sse emission functions

15 years agoSeparate SSE emission functions to new source file
David Schleef [Mon, 25 May 2009 02:38:06 +0000 (19:38 -0700)]
Separate SSE emission functions to new source file

15 years agoAdd compiler target flags
David Schleef [Mon, 25 May 2009 02:20:10 +0000 (19:20 -0700)]
Add compiler target flags

15 years agotests: fix up tests for new api
David Schleef [Sun, 24 May 2009 22:55:06 +0000 (15:55 -0700)]
tests: fix up tests for new api

15 years agohacking
David Schleef [Sun, 24 May 2009 21:08:39 +0000 (14:08 -0700)]
hacking

15 years agoclean up files after running tests
David Schleef [Sun, 24 May 2009 21:07:50 +0000 (14:07 -0700)]
clean up files after running tests

15 years agomake all the tests work
David Schleef [Sun, 24 May 2009 01:07:39 +0000 (18:07 -0700)]
make all the tests work

15 years agotests: rearrange tests, propogate compile errors
David Schleef [Sat, 23 May 2009 22:08:19 +0000 (15:08 -0700)]
tests: rearrange tests, propogate compile errors

15 years agoFix merge opcodes
David Schleef [Fri, 15 May 2009 22:29:44 +0000 (15:29 -0700)]
Fix merge opcodes

15 years agoAdd ability to optionally add a frame pointer
David Schleef [Fri, 15 May 2009 05:24:25 +0000 (22:24 -0700)]
Add ability to optionally add a frame pointer

15 years agoremove orc-stdint.h
David Schleef [Fri, 15 May 2009 05:19:02 +0000 (22:19 -0700)]
remove orc-stdint.h

15 years agoFix type punning
David Schleef [Fri, 15 May 2009 05:18:06 +0000 (22:18 -0700)]
Fix type punning

15 years agoAltivec hacking
David Schleef [Mon, 11 May 2009 19:41:24 +0000 (12:41 -0700)]
Altivec hacking

15 years agoAltivec hacking
David Schleef [Mon, 11 May 2009 18:25:09 +0000 (11:25 -0700)]
Altivec hacking

15 years agoMore altivec rules
David Schleef [Sun, 10 May 2009 19:22:46 +0000 (12:22 -0700)]
More altivec rules

15 years agoAltivec rules
David Schleef [Sun, 10 May 2009 07:15:06 +0000 (00:15 -0700)]
Altivec rules

15 years agoAdd select and merge opcodes
David Schleef [Thu, 7 May 2009 21:35:14 +0000 (14:35 -0700)]
Add select and merge opcodes

15 years agoCheck rule sets for required target flags
David Schleef [Wed, 29 Apr 2009 05:06:07 +0000 (22:06 -0700)]
Check rule sets for required target flags

15 years agoDetect CPU flags for SSE
David Schleef [Wed, 29 Apr 2009 05:00:43 +0000 (22:00 -0700)]
Detect CPU flags for SSE

15 years agoPrefix x86_/sse_ functions with orc_
David Schleef [Tue, 28 Apr 2009 06:45:44 +0000 (23:45 -0700)]
Prefix x86_/sse_ functions with orc_

15 years agoFix bonghits in previous commit
David Schleef [Tue, 28 Apr 2009 06:06:16 +0000 (23:06 -0700)]
Fix bonghits in previous commit

15 years agoFixes for x86-64
David Schleef [Tue, 28 Apr 2009 06:00:47 +0000 (23:00 -0700)]
Fixes for x86-64

15 years agoAdd tests for float and pixel opcodes
David Schleef [Tue, 28 Apr 2009 02:09:31 +0000 (19:09 -0700)]
Add tests for float and pixel opcodes

15 years agoAdd orc-float library
David Schleef [Tue, 28 Apr 2009 01:58:28 +0000 (18:58 -0700)]
Add orc-float library

Also fix some core features for 8-byte values

15 years agoadd unsigned and hex printing to tests
David Schleef [Mon, 27 Apr 2009 21:54:27 +0000 (14:54 -0700)]
add unsigned and hex printing to tests

15 years agoAdd orc-pixel library
David Schleef [Mon, 27 Apr 2009 18:26:04 +0000 (11:26 -0700)]
Add orc-pixel library

15 years agoFix previous commit
David Schleef [Mon, 27 Apr 2009 04:22:15 +0000 (21:22 -0700)]
Fix previous commit

15 years agoPull various fixes from neon branch
David Schleef [Mon, 27 Apr 2009 03:52:59 +0000 (20:52 -0700)]
Pull various fixes from neon branch

15 years agoAdd accumulators, accum opcodes, and sse implementations
David Schleef [Mon, 27 Apr 2009 01:53:42 +0000 (18:53 -0700)]
Add accumulators, accum opcodes, and sse implementations

15 years agoFixes for static array indices
David Schleef [Sun, 26 Apr 2009 08:04:58 +0000 (01:04 -0700)]
Fixes for static array indices

15 years agoDump program right before compiling
David Schleef [Sun, 26 Apr 2009 01:03:38 +0000 (18:03 -0700)]
Dump program right before compiling

15 years agoFix tests
David Schleef [Sun, 26 Apr 2009 01:03:13 +0000 (18:03 -0700)]
Fix tests

15 years agouse rand(), not random()
David Schleef [Thu, 16 Apr 2009 23:27:06 +0000 (16:27 -0700)]
use rand(), not random()

15 years agowin32 fix
David Schleef [Thu, 16 Apr 2009 23:18:44 +0000 (16:18 -0700)]
win32 fix

15 years agoMove toward static array indexes
David Schleef [Tue, 7 Apr 2009 22:57:48 +0000 (15:57 -0700)]
Move toward static array indexes

15 years agocompile fix on mac
David Schleef [Tue, 7 Apr 2009 04:22:19 +0000 (21:22 -0700)]
compile fix on mac

15 years agoImprove errors, use long jumps on x86
David Schleef [Tue, 7 Apr 2009 03:33:03 +0000 (20:33 -0700)]
Improve errors, use long jumps on x86

15 years agoCheck opcode and instruction argument sizes for agreement
David Schleef [Sun, 5 Apr 2009 23:44:52 +0000 (16:44 -0700)]
Check opcode and instruction argument sizes for agreement

And fix some mistakes

15 years agoFix some opcodes
David Schleef [Sun, 5 Apr 2009 07:19:10 +0000 (00:19 -0700)]
Fix some opcodes

15 years agoAllow reading dest arrays
David Schleef [Thu, 2 Apr 2009 23:50:29 +0000 (16:50 -0700)]
Allow reading dest arrays

15 years agoAlso test in-place dest buffers
David Schleef [Thu, 2 Apr 2009 23:50:02 +0000 (16:50 -0700)]
Also test in-place dest buffers

15 years agoAdd another test
David Schleef [Wed, 1 Apr 2009 18:47:46 +0000 (11:47 -0700)]
Add another test

15 years agooops, needed for last commit
David Schleef [Wed, 1 Apr 2009 18:46:54 +0000 (11:46 -0700)]
oops, needed for last commit

15 years agosse: fix loading of consts and params
David Schleef [Wed, 1 Apr 2009 17:47:18 +0000 (10:47 -0700)]
sse: fix loading of consts and params

15 years agoFix C code for shrul
David Schleef [Wed, 1 Apr 2009 17:11:40 +0000 (10:11 -0700)]
Fix C code for shrul

15 years agoremove dead code
David Schleef [Wed, 1 Apr 2009 05:53:19 +0000 (22:53 -0700)]
remove dead code

15 years agoTest const and param sources
David Schleef [Wed, 1 Apr 2009 05:25:54 +0000 (22:25 -0700)]
Test const and param sources

15 years agouse dest as src
David Schleef [Wed, 1 Apr 2009 05:25:25 +0000 (22:25 -0700)]
use dest as src

15 years agofix convlw
David Schleef [Wed, 1 Apr 2009 05:24:21 +0000 (22:24 -0700)]
fix convlw

15 years agoquiet some debugging
David Schleef [Wed, 1 Apr 2009 05:18:02 +0000 (22:18 -0700)]
quiet some debugging

15 years agoenable convlw rule
David Schleef [Wed, 1 Apr 2009 05:17:45 +0000 (22:17 -0700)]
enable convlw rule

15 years agoAllow reading from dest
David Schleef [Wed, 1 Apr 2009 05:11:46 +0000 (22:11 -0700)]
Allow reading from dest

15 years agoInstall orc tests into $prefix/lib/orc/
David Schleef [Wed, 1 Apr 2009 04:33:09 +0000 (21:33 -0700)]
Install orc tests into $prefix/lib/orc/

15 years agoRemove old OrcOpcode
David Schleef [Tue, 31 Mar 2009 20:00:58 +0000 (13:00 -0700)]
Remove old OrcOpcode

15 years agofix bug in program
David Schleef [Tue, 31 Mar 2009 17:44:34 +0000 (10:44 -0700)]
fix bug in program

15 years agomake function static
David Schleef [Tue, 31 Mar 2009 17:41:33 +0000 (10:41 -0700)]
make function static

15 years agoAttempt to fix UL saturation
David Schleef [Tue, 31 Mar 2009 00:48:02 +0000 (17:48 -0700)]
Attempt to fix UL saturation

15 years agoUse printf attribute on orc_compiler_add_code
David Schleef [Mon, 30 Mar 2009 19:23:44 +0000 (12:23 -0700)]
Use printf attribute on orc_compiler_add_code

15 years agotest generated code in schro test
David Schleef [Sun, 29 Mar 2009 17:52:41 +0000 (10:52 -0700)]
test generated code in schro test

15 years agoFix bugs in emulation
David Schleef [Sun, 29 Mar 2009 17:44:01 +0000 (10:44 -0700)]
Fix bugs in emulation

15 years agosome dist fixes
David Schleef [Sun, 29 Mar 2009 01:30:24 +0000 (18:30 -0700)]
some dist fixes

15 years agoadd .gitignore
David Schleef [Sun, 29 Mar 2009 01:23:36 +0000 (18:23 -0700)]
add .gitignore

15 years agolots of hacking
David Schleef [Sun, 29 Mar 2009 01:23:13 +0000 (18:23 -0700)]
lots of hacking

15 years agosse: condense some common code
David Schleef [Sat, 28 Mar 2009 07:42:52 +0000 (00:42 -0700)]
sse: condense some common code

15 years agoadd a compiler tool
David Schleef [Sat, 28 Mar 2009 07:00:00 +0000 (00:00 -0700)]
add a compiler tool

15 years agoAdd a compile/disassemble/diff test function
David Schleef [Sat, 28 Mar 2009 07:00:49 +0000 (00:00 -0700)]
Add a compile/disassemble/diff test function

15 years agoimplement a bunch of SSE rules
David Schleef [Sat, 28 Mar 2009 06:58:57 +0000 (23:58 -0700)]
implement a bunch of SSE rules

15 years agoadd parser
David Schleef [Sat, 28 Mar 2009 06:58:21 +0000 (23:58 -0700)]
add parser

15 years agofix orc_init
David Schleef [Sat, 28 Mar 2009 06:58:02 +0000 (23:58 -0700)]
fix orc_init

15 years agofix orc_target_rule_get
David Schleef [Sat, 28 Mar 2009 06:57:46 +0000 (23:57 -0700)]
fix orc_target_rule_get

15 years agoFixes to build runnable arm code
David Schleef [Wed, 25 Mar 2009 03:05:18 +0000 (20:05 -0700)]
Fixes to build runnable arm code

15 years agoAdd orctest library
David Schleef [Wed, 25 Mar 2009 03:04:07 +0000 (20:04 -0700)]
Add orctest library

15 years agoFix arm compile
David Schleef [Wed, 25 Mar 2009 00:08:10 +0000 (17:08 -0700)]
Fix arm compile

15 years agoChange debug format to be more like schro
David Schleef [Wed, 18 Mar 2009 19:17:53 +0000 (12:17 -0700)]
Change debug format to be more like schro

15 years agoSplit SSE into multiple rule sets
David Schleef [Tue, 17 Mar 2009 22:59:08 +0000 (15:59 -0700)]
Split SSE into multiple rule sets

15 years agoAdd a compile/disassemble/compare test, and fix some bugs
David Schleef [Tue, 17 Mar 2009 22:34:24 +0000 (15:34 -0700)]
Add a compile/disassemble/compare test, and fix some bugs

15 years agoA non-trivial Mersenne Twister algorithm
David Schleef [Tue, 17 Mar 2009 22:31:26 +0000 (15:31 -0700)]
A non-trivial Mersenne Twister algorithm

15 years agoupdate README
David Schleef [Tue, 17 Mar 2009 22:30:47 +0000 (15:30 -0700)]
update README

15 years agoMajor refactor
David Schleef [Tue, 17 Mar 2009 05:22:33 +0000 (22:22 -0700)]
Major refactor

Added OrcTarget, OrcRuleSet, and OrcOpcodeSet.  Orc can
theoretically now handle multiple sets of opcodes and rules.
Fixed a couple bugs along the way.

15 years agoClean up unused code
David Schleef [Mon, 16 Mar 2009 05:33:02 +0000 (22:33 -0700)]
Clean up unused code

15 years agoRemove some disabled code
David Schleef [Sun, 15 Mar 2009 23:14:15 +0000 (16:14 -0700)]
Remove some disabled code

15 years agoSplit OrcProgram into Program and Compiler
David Schleef [Sun, 15 Mar 2009 23:11:10 +0000 (16:11 -0700)]
Split OrcProgram into Program and Compiler

15 years agoSplit orccompiler.c out of orcprogram.c
David Schleef [Sun, 15 Mar 2009 17:31:45 +0000 (10:31 -0700)]
Split orccompiler.c out of orcprogram.c

15 years agoVarious code generation fixes
David Schleef [Sun, 15 Mar 2009 06:42:34 +0000 (23:42 -0700)]
Various code generation fixes

15 years agoFix some cases where the default target was used incorrectly
David Schleef [Sun, 15 Mar 2009 06:01:09 +0000 (23:01 -0700)]
Fix some cases where the default target was used incorrectly

15 years agoFix up emulation
David Schleef [Sun, 15 Mar 2009 05:46:30 +0000 (22:46 -0700)]
Fix up emulation

15 years agoSome fixes for C backend
David Schleef [Sun, 15 Mar 2009 02:52:54 +0000 (19:52 -0700)]
Some fixes for C backend

15 years agoMake the C backend a lot more functional
David Schleef [Sun, 15 Mar 2009 01:23:51 +0000 (18:23 -0700)]
Make the C backend a lot more functional

15 years agoMerge codemem functions into one source file
David Schleef [Fri, 13 Mar 2009 05:30:57 +0000 (22:30 -0700)]
Merge codemem functions into one source file

15 years agoConvert printf's to errors and asm code
David Schleef [Fri, 13 Mar 2009 04:40:47 +0000 (21:40 -0700)]
Convert printf's to errors and asm code

15 years agoConvert orc_program_compile to boolean
David Schleef [Fri, 13 Mar 2009 03:14:20 +0000 (20:14 -0700)]
Convert orc_program_compile to boolean

15 years agoAdd more opcodes
David Schleef [Fri, 13 Mar 2009 03:13:49 +0000 (20:13 -0700)]
Add more opcodes

15 years agoinstall orcutils.h
David Schleef [Fri, 13 Mar 2009 01:43:32 +0000 (18:43 -0700)]
install orcutils.h

15 years agocode cleanup
David Schleef [Fri, 13 Mar 2009 01:43:14 +0000 (18:43 -0700)]
code cleanup

15 years agoDon't crash if there's no rule for an opcode
David Schleef [Thu, 12 Mar 2009 22:44:31 +0000 (15:44 -0700)]
Don't crash if there's no rule for an opcode