summaryrefslogtreecommitdiff
path: root/test/builtins
AgeCommit message (Collapse)Author
2015-05-12[Builtins] Implement half-precision conversions.Ahmed Bougacha
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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@237161 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-24Add COMPILER_RT_ABI attribute to declarations of builtin functions in unittestsDerek Schuff
Summary: This makes their local declarations match their definitions for ARM targets, where they have a different calling convention. This really only affects functions that use floating point types (since the runtime functions use soft-float, and some targets may default to hard-float) but it seemed good to make it uniform and do the int-only ones too. Differential Revision: http://reviews.llvm.org/D9062 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@235722 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-11Refactor float to integer conversion to share the same code.Joerg Sonnenberger
80bit Intel/PPC long double is excluded due to lacking support for the abstraction. Consistently provide saturation logic. Extend to long double on 128bit IEEE extended platforms. Initial patch with test cases from GuanHong Liu. Reviewed by Steve Canon. Differential Revision: http://reviews.llvm.org/D2804 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@231965 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-08Avoid warnings on !PowerPCJoerg Sonnenberger
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@231609 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-08Don't produce warnings on !PowerPC.Joerg Sonnenberger
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@231608 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-05tests: correct builtins test if built under -mthumb on ARMSaleem Abdulrasool
The clear_cache and enable_execute_stack tests attempt to memcpy the definition of a function into a buffer before executing the function. The problem with this approach is that on some targets (ARM with thumb mode compilation, MIPS with MIPS16 codegen or uMIPS), you would use a pointer which is incorrect (it would be off-by-one) due to the ISA selection being encoded into the address. This ensures that the function address is retrieved correctly in all cases. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@225215 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-16Implement floatsitf, floatunstfsi, which performJoerg Sonnenberger
(signed/unsigned)integer to quad-precision conversion. Submitted by GuanHong Liu. Differential Revision: http://reviews.llvm.org/D2805 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@217901 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-19Provide mul for IEEE quad. From GuanHong Liu.Joerg Sonnenberger
Differential Revision: http://reviews.llvm.org/D2799 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@211313 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-19Provide add and sub for IEEE quad. From GuanHong Liu.Joerg Sonnenberger
Differential Revision: http://reviews.llvm.org/D2798 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@211312 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-30Implement __divtf3 for IEEE quad precision.Joerg Sonnenberger
Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D2800 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209886 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-29Add __extenddftf2 and __extendsftf2 for IEEE quad precision.Joerg Sonnenberger
Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D2802 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209783 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-29Implement __trunctfdf2 and __trunctfsf2 for IEEE quad precision.Joerg Sonnenberger
Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D2803 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209782 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-01Add support for IEEE754 quad precision comparison functions.Joerg Sonnenberger
From GuanHong Liu. Differential Revision: http://llvm-reviews.chandlerc.com/D2797 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205312 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-18Use CRT_HAS_128BIT.Joerg Sonnenberger
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204182 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14Move tests for BlocksRuntime and builtins to corresponding directories under ↵Alexey Samsonov
test/ git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201396 91177308-0d34-0410-b5e6-96231b3b80d8