platform/upstream/orc.git
14 years agommx: Update from SSE again
David Schleef [Wed, 8 Sep 2010 21:20:13 +0000 (14:20 -0700)]
mmx: Update from SSE again

14 years agosse: Fix shrsq rule
David Schleef [Wed, 8 Sep 2010 21:18:59 +0000 (14:18 -0700)]
sse: Fix shrsq rule

14 years agoorc-test: Fix comparison of 64-bit types
David Schleef [Wed, 8 Sep 2010 21:18:12 +0000 (14:18 -0700)]
orc-test: Fix comparison of 64-bit types

14 years agoAdd orc_compiler_try_get_constant_long()
David Schleef [Wed, 8 Sep 2010 20:29:02 +0000 (13:29 -0700)]
Add orc_compiler_try_get_constant_long()

For loading long constants if it happens to be fast.  Use case is
for when there's a backup rule that is almost as fast.  (The
assumption is that loading long constants is slow.)

14 years agoImplement shrsq for SSE
Sebastian Dröge [Wed, 8 Sep 2010 05:21:33 +0000 (07:21 +0200)]
Implement shrsq for SSE

Doesn't really work yet

14 years agoImplement SSE versions of shlq/shruq
Sebastian Dröge [Mon, 6 Sep 2010 09:22:18 +0000 (11:22 +0200)]
Implement SSE versions of shlq/shruq

14 years agoAdd 64 bit shlq/shrsq/shruq opcodes
Sebastian Dröge [Mon, 6 Sep 2010 09:02:56 +0000 (11:02 +0200)]
Add 64 bit shlq/shrsq/shruq opcodes

14 years agoImplement SSE versions of addq/subq
Sebastian Dröge [Mon, 6 Sep 2010 08:54:29 +0000 (10:54 +0200)]
Implement SSE versions of addq/subq

14 years agoAdd 64 bit addq/subq opcodes
Sebastian Dröge [Mon, 6 Sep 2010 08:53:26 +0000 (10:53 +0200)]
Add 64 bit addq/subq opcodes

14 years agoImplement SSE versions of andq/andnq/orq/xorq/cmpeqq/cmpgtsq
Sebastian Dröge [Mon, 6 Sep 2010 08:50:51 +0000 (10:50 +0200)]
Implement SSE versions of andq/andnq/orq/xorq/cmpeqq/cmpgtsq

14 years agoAdd 64 bit andq/andnq/orq/xorq/cmpeqq/cmpgtsq opcodes
Sebastian Dröge [Mon, 6 Sep 2010 08:50:04 +0000 (10:50 +0200)]
Add 64 bit andq/andnq/orq/xorq/cmpeqq/cmpgtsq opcodes

14 years agoAdd ORC_TARGET_CLEAN_COMPILE and use it
David Schleef [Wed, 8 Sep 2010 20:12:07 +0000 (13:12 -0700)]
Add ORC_TARGET_CLEAN_COMPILE and use it

14 years agommx: Update from sse
David Schleef [Wed, 8 Sep 2010 20:11:34 +0000 (13:11 -0700)]
mmx: Update from sse

14 years agosse: Reenable rules that use pshufb
David Schleef [Wed, 8 Sep 2010 19:28:10 +0000 (12:28 -0700)]
sse: Reenable rules that use pshufb

14 years agoorcc: Delete output file if there's an error
David Schleef [Wed, 8 Sep 2010 04:54:47 +0000 (21:54 -0700)]
orcc: Delete output file if there's an error

14 years agosse: Implement ldresnearl
David Schleef [Wed, 8 Sep 2010 04:11:23 +0000 (21:11 -0700)]
sse: Implement ldresnearl

14 years agocompiler: Implement long (128-bit) constants
David Schleef [Wed, 8 Sep 2010 04:09:51 +0000 (21:09 -0700)]
compiler: Implement long (128-bit) constants

14 years agosse: More fixes for X86_ECX -> gp_tmpreg
David Schleef [Mon, 6 Sep 2010 23:37:38 +0000 (16:37 -0700)]
sse: More fixes for X86_ECX -> gp_tmpreg

14 years agosse: Use temp space in exec struct, not stack
David Schleef [Mon, 6 Sep 2010 22:53:21 +0000 (15:53 -0700)]
sse: Use temp space in exec struct, not stack

14 years agosse: Fix register usage on Win64
David Schleef [Mon, 6 Sep 2010 21:58:25 +0000 (14:58 -0700)]
sse: Fix register usage on Win64

14 years agox86: Don't call rdtsc in prologue/epilogue
David Schleef [Mon, 6 Sep 2010 21:57:22 +0000 (14:57 -0700)]
x86: Don't call rdtsc in prologue/epilogue

14 years agoBump version to 0.4.9.1
David Schleef [Mon, 6 Sep 2010 21:57:53 +0000 (14:57 -0700)]
Bump version to 0.4.9.1

14 years agoRelease 0.4.9 orc-0.4.9
David Schleef [Mon, 6 Sep 2010 08:20:12 +0000 (01:20 -0700)]
Release 0.4.9

14 years agoEliminate usage of %lld, etc.
David Schleef [Mon, 6 Sep 2010 07:15:32 +0000 (00:15 -0700)]
Eliminate usage of %lld, etc.

14 years agoImplement handling of 64 bit constants in the C backend
Sebastian Dröge [Sun, 5 Sep 2010 12:51:32 +0000 (14:51 +0200)]
Implement handling of 64 bit constants in the C backend

This uses %lx and %ld to print 64 bit integers but on 32
bit architectures something like %llx and %lld would be
needed.

14 years agoorcc: Implement handling of 64 bit constants
Sebastian Dröge [Sun, 5 Sep 2010 12:50:35 +0000 (14:50 +0200)]
orcc: Implement handling of 64 bit constants

This uses %lx for printing 64 bit integers but on
32 bit architectures something like %llx would be
needed.

14 years agoUse strtoll() when parsing constants and support 64 bit intermediates
Sebastian Dröge [Sun, 5 Sep 2010 12:49:49 +0000 (14:49 +0200)]
Use strtoll() when parsing constants and support 64 bit intermediates

14 years agoImplement strtoll() for 64 bit integer constants
Sebastian Dröge [Sun, 5 Sep 2010 12:48:59 +0000 (14:48 +0200)]
Implement strtoll() for 64 bit integer constants

14 years agoBump version to 0.4.8.1
Sebastian Dröge [Sun, 5 Sep 2010 12:52:25 +0000 (14:52 +0200)]
Bump version to 0.4.8.1

14 years agoc: Fix convdf opcode
David Schleef [Mon, 6 Sep 2010 06:52:46 +0000 (23:52 -0700)]
c: Fix convdf opcode

14 years agoAdd AMD microarchitecture definitions
David Schleef [Mon, 6 Sep 2010 06:14:53 +0000 (23:14 -0700)]
Add AMD microarchitecture definitions

14 years agoparse: Add some bounds checking
David Schleef [Sun, 5 Sep 2010 19:57:56 +0000 (12:57 -0700)]
parse: Add some bounds checking

14 years agox86: Add AMD microarchitectures
David Schleef [Sun, 5 Sep 2010 19:09:58 +0000 (12:09 -0700)]
x86: Add AMD microarchitectures

14 years agoorcc: Handle compatibility for ORC_VAR_T16
David Schleef [Sun, 5 Sep 2010 18:55:35 +0000 (11:55 -0700)]
orcc: Handle compatibility for ORC_VAR_T16

14 years agox86: use movzx instead of movb
David Schleef [Sun, 5 Sep 2010 03:50:02 +0000 (20:50 -0700)]
x86: use movzx instead of movb

14 years agox86: More cpuid improvements
David Schleef [Sun, 5 Sep 2010 02:26:24 +0000 (19:26 -0700)]
x86: More cpuid improvements

14 years agox86: cpuid improvements
David Schleef [Sun, 5 Sep 2010 01:05:51 +0000 (18:05 -0700)]
x86: cpuid improvements

Attempt to detect microarchitecture.

14 years agoorc-bugreport: Fix program generation
David Schleef [Sun, 5 Sep 2010 01:05:12 +0000 (18:05 -0700)]
orc-bugreport: Fix program generation

14 years agoExtract cpu name/family/model/stepping
David Schleef [Sat, 4 Sep 2010 22:51:39 +0000 (15:51 -0700)]
Extract cpu name/family/model/stepping

14 years agotest: disabled unused code
David Schleef [Sat, 4 Sep 2010 22:50:41 +0000 (15:50 -0700)]
test: disabled unused code

14 years agoonce: Use constructor on Windows for initialization
David Schleef [Sat, 4 Sep 2010 19:41:39 +0000 (12:41 -0700)]
once: Use constructor on Windows for initialization

14 years agoc: Fix ldreslinl rule (again)
David Schleef [Sat, 4 Sep 2010 07:33:58 +0000 (00:33 -0700)]
c: Fix ldreslinl rule (again)

14 years agotestsuite: Add compatibility check
David Schleef [Sat, 4 Sep 2010 00:16:28 +0000 (17:16 -0700)]
testsuite: Add compatibility check

14 years agoAdd some random files
David Schleef [Fri, 3 Sep 2010 20:42:06 +0000 (13:42 -0700)]
Add some random files

14 years agosse: Fix register handling on Win64
David Schleef [Sat, 4 Sep 2010 02:16:42 +0000 (19:16 -0700)]
sse: Fix register handling on Win64

14 years agoimplement constant folding
David Schleef [Fri, 3 Sep 2010 19:29:36 +0000 (12:29 -0700)]
implement constant folding

14 years agoAdd -version-info to libs
David Schleef [Fri, 3 Sep 2010 19:29:15 +0000 (12:29 -0700)]
Add -version-info to libs

14 years agoFix static linking
David Schleef [Fri, 3 Sep 2010 06:22:05 +0000 (23:22 -0700)]
Fix static linking

14 years agoAdd needed file (again)
David Schleef [Tue, 31 Aug 2010 06:37:01 +0000 (23:37 -0700)]
Add needed file (again)

14 years agoAdd needed file
David Schleef [Tue, 31 Aug 2010 06:36:00 +0000 (23:36 -0700)]
Add needed file

14 years agoRelease 0.4.8 orc-0.4.8
David Schleef [Mon, 30 Aug 2010 05:25:45 +0000 (22:25 -0700)]
Release 0.4.8

14 years agoc: Handle 64-bit parameters
David Schleef [Mon, 30 Aug 2010 01:12:51 +0000 (18:12 -0700)]
c: Handle 64-bit parameters

14 years agotest.orc: remove glib types
David Schleef [Mon, 30 Aug 2010 01:10:32 +0000 (18:10 -0700)]
test.orc: remove glib types

14 years agoorcc: Fix code generation of test
David Schleef [Mon, 30 Aug 2010 01:09:20 +0000 (18:09 -0700)]
orcc: Fix code generation of test

14 years agotestsuite: Fix cross compiling of orcc test
David Schleef [Mon, 30 Aug 2010 01:01:58 +0000 (18:01 -0700)]
testsuite: Fix cross compiling of orcc test

14 years agoFix typo in function name
David Schleef [Sat, 28 Aug 2010 06:38:47 +0000 (23:38 -0700)]
Fix typo in function name

14 years agoFix MSVC build errors
David Schleef [Sat, 28 Aug 2010 06:37:54 +0000 (23:37 -0700)]
Fix MSVC build errors

14 years agoc: Fix denormal handling
David Schleef [Sat, 28 Aug 2010 06:36:25 +0000 (23:36 -0700)]
c: Fix denormal handling

Turns out the previous macro was using a gcc extension.  MSVC
didn't like that.

14 years agoneon: Fix shift in loadpl
David Schleef [Fri, 27 Aug 2010 23:33:28 +0000 (16:33 -0700)]
neon: Fix shift in loadpl

14 years agoChange constant values to orc_union64 internally
David Schleef [Fri, 27 Aug 2010 22:26:19 +0000 (15:26 -0700)]
Change constant values to orc_union64 internally

Also update the MMX backend.  This implements much of the
infrastructure for 64-bit constants, but parsing of 64-bit
integer constants is broken (no portable strtoll implementation),
and the backends probably don't load 64-bit constants correctly.

14 years agoImplement parsing of float constants
David Schleef [Fri, 27 Aug 2010 21:04:23 +0000 (14:04 -0700)]
Implement parsing of float constants

14 years agoChange meaning of convfl/convdl to be saturated
David Schleef [Fri, 27 Aug 2010 19:42:44 +0000 (12:42 -0700)]
Change meaning of convfl/convdl to be saturated

Some architectures (powerpc) clamp out-of-range values to the
integer range when converting from float to int.  Others (x86)
maps out-of-range values to 0x80000000.  Since we have to choose
one, saturating seems like the better choice.

14 years agoAdd splitql opcode
David Schleef [Fri, 27 Aug 2010 17:45:57 +0000 (10:45 -0700)]
Add splitql opcode

14 years agoc: Fix code for ldreslinl
David Schleef [Fri, 27 Aug 2010 17:45:09 +0000 (10:45 -0700)]
c: Fix code for ldreslinl

14 years agoc: Fix loading of float params
David Schleef [Fri, 27 Aug 2010 00:58:42 +0000 (17:58 -0700)]
c: Fix loading of float params

Float params are loaded from orc_union32 pointers into orc_union32
temporaries, so it's important to not to a float->int conversion
in there.

14 years agoneon: Add a few double rules
David Schleef [Thu, 26 Aug 2010 23:14:42 +0000 (16:14 -0700)]
neon: Add a few double rules

14 years agoAdd int64 and double parameters
David Schleef [Thu, 26 Aug 2010 22:02:53 +0000 (15:02 -0700)]
Add int64 and double parameters

14 years agoUse ULL as qualifier for 64 bit integer constants
Sebastian Dröge [Thu, 26 Aug 2010 19:30:24 +0000 (21:30 +0200)]
Use ULL as qualifier for 64 bit integer constants

14 years agoAdd copyq opcode
Sebastian Dröge [Thu, 26 Aug 2010 16:26:37 +0000 (18:26 +0200)]
Add copyq opcode

14 years agoAdd SSE2 implementations of all double opcodes
Sebastian Dröge [Thu, 26 Aug 2010 16:18:42 +0000 (18:18 +0200)]
Add SSE2 implementations of all double opcodes

14 years agoAdd support for comparing double arrays
Sebastian Dröge [Thu, 26 Aug 2010 16:18:26 +0000 (18:18 +0200)]
Add support for comparing double arrays

14 years agoAdd 64 bit floating point opcodes
Sebastian Dröge [Thu, 26 Aug 2010 15:28:10 +0000 (17:28 +0200)]
Add 64 bit floating point opcodes

14 years agoAdd swapq opcode
Sebastian Dröge [Thu, 26 Aug 2010 14:40:22 +0000 (16:40 +0200)]
Add swapq opcode

14 years agocompiler: allocate correct size for code memory
David Schleef [Thu, 26 Aug 2010 01:37:30 +0000 (18:37 -0700)]
compiler: allocate correct size for code memory

14 years agoFix testing of float params
David Schleef [Wed, 25 Aug 2010 23:00:58 +0000 (16:00 -0700)]
Fix testing of float params

14 years agoc: Handle denormals and nan using bit ops
David Schleef [Wed, 25 Aug 2010 21:51:18 +0000 (14:51 -0700)]
c: Handle denormals and nan using bit ops

14 years agotestsuite: use correct return type
Stefan Kost [Wed, 25 Aug 2010 17:55:59 +0000 (20:55 +0300)]
testsuite: use correct return type

gcc was complaining about the comparision due to wrong type.

14 years agoorcc: remove (fake) dependency on liborc-test
David Schleef [Wed, 25 Aug 2010 10:29:25 +0000 (03:29 -0700)]
orcc: remove (fake) dependency on liborc-test

14 years agoCheck for posix_memalign()
David Schleef [Wed, 25 Aug 2010 10:28:56 +0000 (03:28 -0700)]
Check for posix_memalign()

14 years agoFix cross compiling
David Schleef [Wed, 25 Aug 2010 10:28:16 +0000 (03:28 -0700)]
Fix cross compiling

14 years agotest: Add denormal array pattern
David Schleef [Wed, 25 Aug 2010 10:26:58 +0000 (03:26 -0700)]
test: Add denormal array pattern

14 years agoshow_parse: Allocate array (fix segfault)
David Schleef [Wed, 25 Aug 2010 10:26:20 +0000 (03:26 -0700)]
show_parse: Allocate array (fix segfault)

14 years agoaltivec: Implement lots more rules
David Schleef [Wed, 25 Aug 2010 10:25:14 +0000 (03:25 -0700)]
altivec: Implement lots more rules

14 years agoUse OrcCode structure to handle all executable code
David Schleef [Tue, 24 Aug 2010 20:22:24 +0000 (13:22 -0700)]
Use OrcCode structure to handle all executable code

14 years agoCode memory allocation
David Schleef [Mon, 23 Aug 2010 21:42:29 +0000 (14:42 -0700)]
Code memory allocation

14 years agoAdd OrcCodeRegion
David Schleef [Mon, 23 Aug 2010 21:17:25 +0000 (14:17 -0700)]
Add OrcCodeRegion

14 years agotest: Add special patterns (for floats)
David Schleef [Sun, 22 Aug 2010 23:25:22 +0000 (16:25 -0700)]
test: Add special patterns (for floats)

14 years agoshow_parse: Add -n option
David Schleef [Sun, 22 Aug 2010 23:24:49 +0000 (16:24 -0700)]
show_parse: Add -n option

14 years agosse: Fix some compilation issues on x86-64
David Schleef [Sun, 22 Aug 2010 00:10:32 +0000 (17:10 -0700)]
sse: Fix some compilation issues on x86-64

14 years agosse: add better rules for mulhsl/mulhul
Andrea Canciani [Sat, 21 Aug 2010 21:05:18 +0000 (14:05 -0700)]
sse: add better rules for mulhsl/mulhul

14 years agosse: quit early if error is detected
David Schleef [Sat, 21 Aug 2010 20:46:20 +0000 (13:46 -0700)]
sse: quit early if error is detected

14 years agoc: minor hack for lots of temp vars
David Schleef [Sat, 21 Aug 2010 20:45:52 +0000 (13:45 -0700)]
c: minor hack for lots of temp vars

14 years agotests: Add show_parse
David Schleef [Sat, 21 Aug 2010 20:45:18 +0000 (13:45 -0700)]
tests: Add show_parse

14 years agoAdd ORC_VAR_T16
David Schleef [Fri, 20 Aug 2010 23:15:04 +0000 (16:15 -0700)]
Add ORC_VAR_T16

14 years agocompiler: If compilation fails, go back to backup function
David Schleef [Fri, 20 Aug 2010 23:14:47 +0000 (16:14 -0700)]
compiler: If compilation fails, go back to backup function

14 years agoorcc: Use ORC_RESTRICT for executor structure
David Schleef [Fri, 20 Aug 2010 19:48:27 +0000 (12:48 -0700)]
orcc: Use ORC_RESTRICT for executor structure

14 years agoautogen.sh: Enable --enable-gtk-doc for ds
David Schleef [Fri, 20 Aug 2010 19:48:04 +0000 (12:48 -0700)]
autogen.sh: Enable --enable-gtk-doc for ds

14 years agoFix distcheck for new examples
David Schleef [Fri, 20 Aug 2010 19:47:39 +0000 (12:47 -0700)]
Fix distcheck for new examples

14 years agoUpdate documentation, add tutorial
David Schleef [Fri, 20 Aug 2010 19:15:14 +0000 (12:15 -0700)]
Update documentation, add tutorial

14 years agoc: Add definition of ORC_RESTRICT
David Schleef [Thu, 19 Aug 2010 20:32:10 +0000 (13:32 -0700)]
c: Add definition of ORC_RESTRICT

Theoretically, this should allow gcc to generate better code.