Mercurial > hg > CbC > CbC_llvm
comparison clang/test/CodeGen/ubsan-function.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
173:0572611fdcc8 | 207:2e18cbf3894f |
---|---|
1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -o - %s -fsanitize=function -fno-sanitize-recover=all | FileCheck %s | 1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -o - %s -fsanitize=function -fno-sanitize-recover=all | FileCheck %s |
2 | 2 |
3 // CHECK-LABEL: define void @_Z3funv() #0 prologue <{ i32, i32 }> <{ i32 846595819, i32 trunc (i64 sub (i64 ptrtoint (i8** @0 to i64), i64 ptrtoint (void ()* @_Z3funv to i64)) to i32) }> { | 3 // CHECK-LABEL: define{{.*}} void @_Z3funv() #0 prologue <{ i32, i32 }> <{ i32 846595819, i32 trunc (i64 sub (i64 ptrtoint (i8** @0 to i64), i64 ptrtoint (void ()* @_Z3funv to i64)) to i32) }> { |
4 void fun() {} | 4 void fun() {} |
5 | 5 |
6 // CHECK-LABEL: define void @_Z6callerPFvvE(void ()* %f) | 6 // CHECK-LABEL: define{{.*}} void @_Z6callerPFvvE(void ()* %f) |
7 // CHECK: getelementptr <{ i32, i32 }>, <{ i32, i32 }>* {{.*}}, i32 0, i32 0, !nosanitize | 7 // CHECK: getelementptr <{ i32, i32 }>, <{ i32, i32 }>* {{.*}}, i32 0, i32 0, !nosanitize |
8 // CHECK: load i32, i32* {{.*}}, align {{.*}}, !nosanitize | 8 // CHECK: load i32, i32* {{.*}}, align {{.*}}, !nosanitize |
9 // CHECK: icmp eq i32 {{.*}}, 846595819, !nosanitize | 9 // CHECK: icmp eq i32 {{.*}}, 846595819, !nosanitize |
10 // CHECK: br i1 {{.*}}, label %[[LABEL1:.*]], label %[[LABEL4:.*]], !nosanitize | 10 // CHECK: br i1 {{.*}}, label %[[LABEL1:.*]], label %[[LABEL4:.*]], !nosanitize |
11 // CHECK: [[LABEL1]]: | 11 // CHECK: [[LABEL1]]: |