[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / compiler-rt / test / hwasan / TestCases / check-interface.cpp
blob7ad911480359243e7ef87ad0b8f58b38d2e975e5
1 // RUN: %clangxx_hwasan -mllvm -hwasan-instrument-with-calls=1 -O0 %s -o %t
2 // RUN: %clangxx_hwasan -mllvm -hwasan-instrument-with-calls=1 -O0 %s -o %t -fsanitize-recover=hwaddress
4 // REQUIRES: stable-runtime
6 // Utilizes all flavors of __hwasan_load/store interface functions to verify
7 // that the instrumentation and the interface provided by HWASan do match.
8 // In case of a discrepancy, this test fails to link.
10 #include <sanitizer/hwasan_interface.h>
12 #define F(T) void f_##T(T *a, T *b) { *a = *b; }
14 F(uint8_t)
15 F(uint16_t)
16 F(uint32_t)
17 F(uint64_t)
19 typedef unsigned V32 __attribute__((__vector_size__(32)));
20 F(V32)
22 int main() {}