[DAG] Allow AssertZExt to scalarize. (#122463)
[llvm-project.git] / clang / test / CodeGen / tbaa-struct-relaxed-aliasing-with-tsan.cpp
blobce613b9d6b23f8016a97bb43c3425badf11b2ec7
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o - -O1 -relaxed-aliasing -fsanitize=thread -disable-llvm-optzns %s | \
2 // RUN: FileCheck %s
3 // RUN: %clang_cc1 -triple x86_64-apple-darwin -new-struct-path-tbaa \
4 // RUN: -emit-llvm -o - -O1 -relaxed-aliasing -fsanitize=thread -disable-llvm-optzns %s | \
5 // RUN: FileCheck %s
6 //
7 // Check that we do not create tbaa for instructions generated for copies.
9 // CHECK-NOT: !tbaa
11 struct A {
12 short s;
13 int i;
14 char c;
15 int j;
18 void copyStruct(A *a1, A *a2) {
19 *a1 = *a2;
22 void copyInt(int *a, int *b) {
23 *a = *b;