llvm-project/compiler-rt/test/builtins/Unit
Ahmed Bougacha f1ac850e77 [Builtins] Implement half-precision conversions.
Mostly uninteresting, except:
- in __extendXfYf2, when checking if the number is normal, the old
  code relied on the unsignedness of src_rep_t, which is a problem
  when sizeof(src_rep_t) < sizeof(int): the result gets promoted to
  int, the signedness of which breaks the comparison.
  I added an explicit cast; it shouldn't affect other types.
- we can't pass __fp16, so src_t and src_rep_t are the same.
- the gnu_*_ieee symbols are simply duplicated definitions, as aliases
  are problematic on mach-o (where only weak aliases are supported;
  that's not what we want).

Differential Revision: http://reviews.llvm.org/D9693

llvm-svn: 237161
2015-05-12 18:33:42 +00:00
..
ppc Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
absvdi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
absvsi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
absvti2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
adddf3vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
addsf3vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
addtf3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
addvdi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
addvsi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
addvti3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
ashldi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
ashlti3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
ashrdi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
ashrti3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
bswapdi2_test.c
bswapsi2_test.c
clear_cache_test.c tests: correct builtins test if built under -mthumb on ARM 2015-01-05 21:54:50 +00:00
clzdi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
clzsi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
clzti2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
cmpdi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
cmpti2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
comparedf2_test.c
comparesf2_test.c
ctzdi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
ctzsi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
ctzti2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
divdc3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
divdf3vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
divdi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
divmodsi4_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
divsc3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
divsf3vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
divsi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
divtc3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
divtf3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
divti3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
divxc3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
enable_execute_stack_test.c tests: correct builtins test if built under -mthumb on ARM 2015-01-05 21:54:50 +00:00
endianness.h
eqdf2vfp_test.c
eqsf2vfp_test.c
eqtf2_test.c Add support for IEEE754 quad precision comparison functions. 2014-04-01 13:42:56 +00:00
extebdsfdf2vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
extenddftf2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
extendhfsf2_test.c [Builtins] Implement half-precision conversions. 2015-05-12 18:33:42 +00:00
extendsftf2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
ffsdi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
ffsti2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixdfdi_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixdfsivfp_test.c
fixdfti_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixsfdi_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixsfsivfp_test.c
fixsfti_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixtfsi_test.c Refactor float to integer conversion to share the same code. 2015-03-11 21:13:56 +00:00
fixunsdfdi_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixunsdfsi_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixunsdfsivfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixunsdfti_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixunssfdi_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixunssfsi_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixunssfsivfp_test.c
fixunssfti_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixunstfdi_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixunstfsi_test.c Refactor float to integer conversion to share the same code. 2015-03-11 21:13:56 +00:00
fixunsxfdi_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixunsxfsi_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixunsxfti_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixxfdi_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fixxfti_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatdidf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatdisf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatdixf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatsidfvfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatsisfvfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatsitf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floattidf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floattisf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floattixf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatundidf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatundisf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatundixf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatunsitf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatunssidfvfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatunssisfvfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatuntidf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatuntisf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
floatuntixf_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
fp_test.h [Builtins] Implement half-precision conversions. 2015-05-12 18:33:42 +00:00
gcc_personality_test.c
gcc_personality_test_helper.cxx
gedf2vfp_test.c
gesf2vfp_test.c
getf2_test.c Add support for IEEE754 quad precision comparison functions. 2014-04-01 13:42:56 +00:00
gtdf2vfp_test.c
gtsf2vfp_test.c
gttf2_test.c Add support for IEEE754 quad precision comparison functions. 2014-04-01 13:42:56 +00:00
ledf2vfp_test.c
lesf2vfp_test.c
letf2_test.c Add support for IEEE754 quad precision comparison functions. 2014-04-01 13:42:56 +00:00
lshrdi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
lshrti3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
ltdf2vfp_test.c
ltsf2vfp_test.c
lttf2_test.c Add support for IEEE754 quad precision comparison functions. 2014-04-01 13:42:56 +00:00
moddi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
modsi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
modti3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
muldc3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
muldf3vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
muldi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
mulodi4_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
mulosi4_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
muloti4_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
mulsc3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
mulsf3vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
multc3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
multf3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
multi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
mulvdi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
mulvsi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
mulvti3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
mulxc3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
nedf2vfp_test.c
negdf2vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
negdi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
negsf2vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
negti2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
negvdi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
negvsi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
negvti2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
nesf2vfp_test.c
netf2_test.c Add support for IEEE754 quad precision comparison functions. 2014-04-01 13:42:56 +00:00
paritydi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
paritysi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
parityti2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
popcountdi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
popcountsi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
popcountti2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
powidf2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
powisf2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
powitf2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
powixf2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
subdf3vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
subsf3vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
subtf3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
subvdi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
subvsi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
subvti3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
test
trampoline_setup_test.c
truncdfhf2_test.c [Builtins] Implement half-precision conversions. 2015-05-12 18:33:42 +00:00
truncdfsf2vfp_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
truncsfhf2_test.c [Builtins] Implement half-precision conversions. 2015-05-12 18:33:42 +00:00
trunctfdf2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
trunctfsf2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
ucmpdi2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
ucmpti2_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
udivdi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
udivmoddi4_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
udivmodsi4_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
udivmodti4_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
udivsi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
udivti3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
umoddi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
umodsi3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
umodti3_test.c Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittests 2015-04-24 15:45:57 +00:00
unorddf2vfp_test.c
unordsf2vfp_test.c
unordtf2_test.c Add support for IEEE754 quad precision comparison functions. 2014-04-01 13:42:56 +00:00