target-i386: introduce gen_ext_tl
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Oct 2012 16:02:41 +0000 (18:02 +0200)
committerRichard Henderson <rth@twiddle.net>
Mon, 18 Feb 2013 23:03:55 +0000 (15:03 -0800)
commitd824df34e8cdd2fbe55258f26731d7ef3ac7ced2
treeb2bcb41f78f7bc060cdbd38eb8a2c55ca4f22ac7
parent93ab25d7d129fbe47a99fd8c91292ea99bff747e
target-i386: introduce gen_ext_tl

Introduce a function that abstracts extracting an 8, 16, 32 or 64-bit value
with or without sign, generalizing gen_extu and gen_exts.

Reviewed-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target-i386/translate.c