1 ; RUN: opt < %s -msan-eager-checks -msan-check-access-address=0 -msan-track-origins=1 -S -passes='module(msan)' 2>&1 | FileCheck -allow-deprecated-dag-overlap --check-prefix=CHECK %s
3 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
4 target triple = "x86_64-unknown-linux-gnu"
6 define noundef [2 x i24] @check_array(ptr %p) sanitize_memory {
7 ; CHECK: @check_array(ptr [[P:%.*]])
8 ; CHECK: [[O:%.*]] = load [2 x i24], ptr [[P]]
9 %o = load [2 x i24], ptr %p
10 ; CHECK: [[FIELD0:%.+]] = extractvalue [2 x i24] %_msld, 0
11 ; CHECK: [[FIELD1:%.+]] = extractvalue [2 x i24] %_msld, 1
12 ; CHECK: [[F1_OR:%.+]] = or i24 [[FIELD0]], [[FIELD1]]
13 ; CHECK: %_mscmp = icmp ne i24 [[F1_OR]], 0
14 ; CHECK: br i1 %_mscmp
15 ; CHECK: call void @__msan_warning
16 ; CHECK: ret [2 x i24] [[O]]