[PATCH] D21295: Add a negative TBAA test

Roger Ferrer Ibanez via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 14 05:28:33 PDT 2016


rogfer01 updated this revision to Diff 60667.
rogfer01 added a comment.

Much simpler version thanks to @jmolloy comment.


http://reviews.llvm.org/D21295

Files:
  test/CodeGen/tbaa.cpp

Index: test/CodeGen/tbaa.cpp
===================================================================
--- test/CodeGen/tbaa.cpp
+++ test/CodeGen/tbaa.cpp
@@ -1,6 +1,10 @@
 // RUN: %clang_cc1 -triple x86_64-apple-darwin -O1 -no-struct-path-tbaa -disable-llvm-optzns %s -emit-llvm -o - | FileCheck %s
 // RUN: %clang_cc1 -triple x86_64-apple-darwin -O1 -disable-llvm-optzns %s -emit-llvm -o - | FileCheck %s -check-prefix=PATH
+// RUN: %clang_cc1 -triple x86_64-apple-darwin -O0 -disable-llvm-optzns %s -emit-llvm -o - | FileCheck %s -check-prefix=NO-TBAA
+// RUN: %clang_cc1 -triple x86_64-apple-darwin -O1 -relaxed-aliasing -disable-llvm-optzns %s -emit-llvm -o - | FileCheck %s -check-prefix=NO-TBAA
 // Test TBAA metadata generated by front-end.
+//
+// NO-TBAA-NOT: !tbaa
 
 typedef unsigned char uint8_t;
 typedef unsigned short uint16_t;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21295.60667.patch
Type: text/x-patch
Size: 838 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160614/ea1b4908/attachment.bin>


More information about the cfe-commits mailing list