Lines Matching refs:shift
31 elseif(${testname} STREQUAL "shift")
32 set(UBSAN_SHIFT_FLAG "-fno-sanitize-recover=shift")
35 …# CHECK-LSH_OVERFLOW: shift.cpp:[[@LINE+1]]:5: runtime error: left shift of negative value -214748…
36 add_executable(shift-lsh-overflow ${srcfile})
37 …target_compile_options(shift-lsh-overflow PRIVATE -fsanitize=shift ${UBSAN_SHIFT_FLAG} "-DLSH_OVER…
38 add_executable(shift-lsh-overflow-1 ${srcfile})
39 …target_compile_options(shift-lsh-overflow-1 PRIVATE -fsanitize=shift-base ${UBSAN_SHIFT_FLAG} "-DL…
40 add_executable(shift-lsh-overflow-2 ${srcfile})
41 …target_compile_options(shift-lsh-overflow-2 PRIVATE -fsanitize=shift-exponent ${UBSAN_SHIFT_FLAG} …
43 # CHECK-TOO_LOW: shift.cpp:[[@LINE+1]]:5: runtime error: shift exponent -3 is negative
44 add_executable(shift-too-low ${srcfile})
45 target_compile_options(shift-too-low PRIVATE ${UBSAN_SHIFT_FLAG} "-DTOO_LOW" "-DOP=<<")
47 …# CHECK-TOO_HIGH: shift.cpp:[[@LINE+1]]:5: runtime error: shift exponent 32 is too large for 32-bi…
48 add_executable(shift-high ${srcfile})
49 target_compile_options(shift-high PRIVATE ${UBSAN_SHIFT_FLAG} "-DTOO_HIGH" "-DOP=>>")
76 target_compile_options(shift-lsh-overflow-1 PRIVATE -fsanitize=vla-bound -O3)