1 ; RUN: opt < %s -msan-check-access-address=0 -msan-track-origins=1 -S \
2 ; RUN: -passes=msan 2>&1 | FileCheck %s
3 ; RUN: opt < %s -msan-check-access-address=0 -msan-track-origins=2 -S \
4 ; RUN: -passes=msan 2>&1 | FileCheck %s
6 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
7 target triple = "x86_64-unknown-linux-gnu"
9 define void @func() sanitize_memory {
11 %0 = alloca i32, i32 0, align 4
12 %1 = alloca i32, i32 0, align 4
13 %2 = alloca i32, i32 0, align 4
14 %3 = alloca i32, i32 0, align 4
15 %4 = alloca i32, i32 0, align 4
16 %5 = alloca i32, i32 0, align 4
17 %6 = alloca i32, i32 0, align 4
18 %7 = alloca i32, i32 0, align 4
19 %8 = alloca i32, i32 0, align 4
20 %9 = alloca i32, i32 0, align 4
21 %10 = alloca i32, i32 0, align 4
22 %11 = alloca i32, i32 0, align 4
23 %12 = alloca i32, i32 0, align 4
24 %13 = alloca i32, i32 0, align 4
25 %14 = alloca i32, i32 0, align 4
26 %15 = alloca i32, i32 0, align 4
27 %16 = alloca i32, i32 0, align 4
28 %17 = alloca i32, i32 0, align 4
29 %18 = alloca i32, i32 0, align 4
30 %19 = alloca i32, i32 0, align 4
31 %20 = alloca i32, i32 0, align 4
35 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @0, ptr @1)
36 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @2, ptr @3)
37 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @4, ptr @5)
38 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @6, ptr @7)
39 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @8, ptr @9)
40 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @10, ptr @11)
41 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @12, ptr @13)
42 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @14, ptr @15)
43 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @16, ptr @17)
44 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @18, ptr @19)
45 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @20, ptr @21)
46 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @22, ptr @23)
47 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @24, ptr @25)
48 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @26, ptr @27)
49 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @28, ptr @29)
50 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @30, ptr @31)
51 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @32, ptr @33)
52 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @34, ptr @35)
53 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @36, ptr @37)
54 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @38, ptr @39)
55 ; CHECK: call void @__msan_set_alloca_origin_with_descr(ptr %{{[0-9]+}}, i64 0, ptr @40, ptr @41)