[llvm] r293237 - [libFuzzer] make sure (again) that __builtin_popcountl is compiled into popcnt
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 26 16:20:55 PST 2017
Author: kcc
Date: Thu Jan 26 18:20:55 2017
New Revision: 293237
URL: http://llvm.org/viewvc/llvm-project?rev=293237&view=rev
Log:
[libFuzzer] make sure (again) that __builtin_popcountl is compiled into popcnt
Modified:
llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
Modified: llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp?rev=293237&r1=293236&r2=293237&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp Thu Jan 26 18:20:55 2017
@@ -288,6 +288,7 @@ void __sanitizer_cov_trace_pc_indir(uint
ATTRIBUTE_INTERFACE
ATTRIBUTE_NO_SANITIZE_ALL
+ATTRIBUTE_TARGET_POPCNT
void __sanitizer_cov_trace_cmp8(uint64_t Arg1, uint64_t Arg2) {
uintptr_t PC = reinterpret_cast<uintptr_t>(__builtin_return_address(0));
fuzzer::TPC.HandleCmp(PC, Arg1, Arg2);
@@ -295,6 +296,7 @@ void __sanitizer_cov_trace_cmp8(uint64_t
ATTRIBUTE_INTERFACE
ATTRIBUTE_NO_SANITIZE_ALL
+ATTRIBUTE_TARGET_POPCNT
void __sanitizer_cov_trace_cmp4(uint32_t Arg1, uint32_t Arg2) {
uintptr_t PC = reinterpret_cast<uintptr_t>(__builtin_return_address(0));
fuzzer::TPC.HandleCmp(PC, Arg1, Arg2);
@@ -302,6 +304,7 @@ void __sanitizer_cov_trace_cmp4(uint32_t
ATTRIBUTE_INTERFACE
ATTRIBUTE_NO_SANITIZE_ALL
+ATTRIBUTE_TARGET_POPCNT
void __sanitizer_cov_trace_cmp2(uint16_t Arg1, uint16_t Arg2) {
uintptr_t PC = reinterpret_cast<uintptr_t>(__builtin_return_address(0));
fuzzer::TPC.HandleCmp(PC, Arg1, Arg2);
@@ -309,6 +312,7 @@ void __sanitizer_cov_trace_cmp2(uint16_t
ATTRIBUTE_INTERFACE
ATTRIBUTE_NO_SANITIZE_ALL
+ATTRIBUTE_TARGET_POPCNT
void __sanitizer_cov_trace_cmp1(uint8_t Arg1, uint8_t Arg2) {
uintptr_t PC = reinterpret_cast<uintptr_t>(__builtin_return_address(0));
fuzzer::TPC.HandleCmp(PC, Arg1, Arg2);
@@ -316,6 +320,7 @@ void __sanitizer_cov_trace_cmp1(uint8_t
ATTRIBUTE_INTERFACE
ATTRIBUTE_NO_SANITIZE_ALL
+ATTRIBUTE_TARGET_POPCNT
void __sanitizer_cov_trace_switch(uint64_t Val, uint64_t *Cases) {
uint64_t N = Cases[0];
uint64_t ValSizeInBits = Cases[1];
@@ -342,6 +347,7 @@ void __sanitizer_cov_trace_switch(uint64
ATTRIBUTE_INTERFACE
ATTRIBUTE_NO_SANITIZE_ALL
+ATTRIBUTE_TARGET_POPCNT
void __sanitizer_cov_trace_div4(uint32_t Val) {
uintptr_t PC = reinterpret_cast<uintptr_t>(__builtin_return_address(0));
fuzzer::TPC.HandleCmp(PC, Val, (uint32_t)0);
@@ -349,6 +355,7 @@ void __sanitizer_cov_trace_div4(uint32_t
ATTRIBUTE_INTERFACE
ATTRIBUTE_NO_SANITIZE_ALL
+ATTRIBUTE_TARGET_POPCNT
void __sanitizer_cov_trace_div8(uint64_t Val) {
uintptr_t PC = reinterpret_cast<uintptr_t>(__builtin_return_address(0));
fuzzer::TPC.HandleCmp(PC, Val, (uint64_t)0);
@@ -356,6 +363,7 @@ void __sanitizer_cov_trace_div8(uint64_t
ATTRIBUTE_INTERFACE
ATTRIBUTE_NO_SANITIZE_ALL
+ATTRIBUTE_TARGET_POPCNT
void __sanitizer_cov_trace_gep(uintptr_t Idx) {
uintptr_t PC = reinterpret_cast<uintptr_t>(__builtin_return_address(0));
fuzzer::TPC.HandleCmp(PC, Idx, (uintptr_t)0);
More information about the llvm-commits
mailing list