llvm-project/compiler-rt/test/builtins/Unit
Michal Gorny b81980a376 [test] Fix page address logic in clear_cache_test
Fix the logic used to calculate page boundaries in clear_cache_test to
use correct masks -- e.g. -4096 rather than -4095. The latter gives
incorrect result since:

  -4095 -> 0xfffff001
  -4096 -> 0xfffff000 (== ~4095)

The issue went unnoticed so far because the array alignment caused
the last bit not to be set. However, on 32-bit x86 no such alignment is
enforced and the wrong page address caused the test to fail.

Furthermore, obtain the page size from the system instead of hardcoding
4096.

Differential Revision: https://reviews.llvm.org/D28849

llvm-svn: 292729
2017-01-21 21:55:00 +00:00
..
arm Implement __aeabi_c{d,f}{cmpeq,cmple,rcmple}. 2015-08-21 00:25:37 +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 [test] Fix page address logic in clear_cache_test 2017-01-21 21:55:00 +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
cpu_model_test.c [compiler-rt][tests] cpu_model_test.c test fails to compile if X86 is not clang's default target 2016-08-18 14:39:39 +00:00
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 a generic version of __divtc3.c for long double complex division. 2015-11-22 19:13:49 +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
fixtfdi_test.c [compiler-rt][aarch64] New tests for 128-bit floating-point builtins, fixes of tests and __fixuint 2015-11-05 18:36:42 +00:00
fixtfsi_test.c [compiler-rt][aarch64] New tests for 128-bit floating-point builtins, fixes of tests and __fixuint 2015-11-05 18:36:42 +00:00
fixtfti_test.c [compiler-rt][aarch64] New tests for 128-bit floating-point builtins, fixes of tests and __fixuint 2015-11-05 18:36:42 +00:00
fixunsdfdi_test.c [test] [builtins] Remove obsolete/UB tests in __fixuns?fdi based 2017-01-17 21:08:25 +00:00
fixunsdfsi_test.c [compiler-rt][aarch64] New tests for 128-bit floating-point builtins, fixes of tests and __fixuint 2015-11-05 18:36:42 +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 [compiler-rt][aarch64] New tests for 128-bit floating-point builtins, fixes of tests and __fixuint 2015-11-05 18:36:42 +00:00
fixunssfdi_test.c [test] [builtins] Remove obsolete/UB tests in __fixuns?fdi based 2017-01-17 21:08:25 +00:00
fixunssfsi_test.c [compiler-rt][aarch64] New tests for 128-bit floating-point builtins, fixes of tests and __fixuint 2015-11-05 18:36:42 +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 [compiler-rt][aarch64] New tests for 128-bit floating-point builtins, fixes of tests and __fixuint 2015-11-05 18:36:42 +00:00
fixunstfsi_test.c [compiler-rt][aarch64] New tests for 128-bit floating-point builtins, fixes of tests and __fixuint 2015-11-05 18:36:42 +00:00
fixunstfti_test.c [compiler-rt][aarch64] New tests for 128-bit floating-point builtins, fixes of tests and __fixuint 2015-11-05 18:36:42 +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
floatditf_test.c [compiler-rt] Add AArch64 to CMake configuration and several missing builtins 2015-08-18 13:43:37 +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 Fix __floatsitf() for negative input 2015-07-31 13:32:09 +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
floattitf_test.c [builtins] Implement __floattitf() & __floatuntitf() 2017-01-06 18:46:35 +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
floatunditf_test.c [compiler-rt] Add AArch64 to CMake configuration and several missing builtins 2015-08-18 13:43:37 +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
floatuntitf_test.c [builtins] Implement __floattitf() & __floatuntitf() 2017-01-06 18:46:35 +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 Fix incorrect truncation at the overflow boundary 2015-06-23 20:24:53 +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 [compiler-rt] Add AArch64 to CMake configuration and several missing builtins 2015-08-18 13:43:37 +00:00
multf3_test.c [compiler-rt][aarch64] New tests for 128-bit floating-point builtins, fixes of tests and __fixuint 2015-11-05 18:36:42 +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 [tests] Add missing "int_lib.h" includes and extend guards 2016-12-23 11:18:24 +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 [tests] Add missing "int_lib.h" includes and extend guards 2016-12-23 11:18:24 +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 Fix incorrect truncation at the overflow boundary 2015-06-23 20:24:53 +00:00
truncdfsf2_test.c Fix incorrect truncation at the overflow boundary 2015-06-23 20:24:53 +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 Fix incorrect truncation at the overflow boundary 2015-06-23 20:24:53 +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