xref: /llvm-project/compiler-rt/test/cfi/create-derivers.test (revision a1b8d9fb75c887f6178756d41c041e2e1342a810)
1REQUIRES: asserts
2
3%% Explicit -flto to override possible -flto=thin in %clangxx_cfi
4RUN: %clangxx_cfi -flto -c -o %t1.o %S/simple-fail.cpp
5RUN: opt -passes=lowertypetests -debug-only=lowertypetests -o /dev/null %t1.o 2>&1 | FileCheck --check-prefix=B0 %s
6B0: {{1B|B@@}}: {{.*}} size 1
7
8RUN: %clangxx_cfi -DB32 -flto -c -o %t2.o %S/simple-fail.cpp
9RUN: opt -passes=lowertypetests -debug-only=lowertypetests -o /dev/null %t2.o 2>&1 | FileCheck --check-prefix=B32 %s
10B32: {{1B|B@@}}: {{.*}} size 2{{3|4}}
11B32-NOT: all-ones
12
13RUN: %clangxx_cfi -DB64 -flto -c -o %t3.o %S/simple-fail.cpp
14RUN: opt -passes=lowertypetests -debug-only=lowertypetests -o /dev/null %t3.o 2>&1 | FileCheck --check-prefix=B64 %s
15B64: {{1B|B@@}}: {{.*}} size 5{{3|4}}
16B64-NOT: all-ones
17
18RUN: %clangxx_cfi -DBM -flto -c -o %t4.o %S/simple-fail.cpp
19RUN: opt -passes=lowertypetests -debug-only=lowertypetests -o /dev/null %t4.o 2>&1 | FileCheck --check-prefix=BM %s
20BM: {{1B|B@@}}: {{.*}} size 8{{3|4}}
21BM-NOT: all-ones
22