mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
a27bf9493a
This patch sets the default for llvm tests, with the exception of tests under Reduce, because quite a few of them use 'FileCheck' as parameter to a tool, and including a flag as that parameter would complicate matters. The rest of the patch undo-es the lit.local.cfg changes we progressively introduced as temporary measure to avoid regressions under various directories. Differential Revision: https://reviews.llvm.org/D95111
20 lines
960 B
LLVM
20 lines
960 B
LLVM
; RUN: opt < %s -msan-eager-checks -msan-check-access-address=0 -msan-track-origins=1 -S -passes='module(msan-module),function(msan)' 2>&1 | \
|
|
; RUN: FileCheck -allow-deprecated-dag-overlap --check-prefix=CHECK %s
|
|
|
|
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"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define noundef [2 x i24] @check_array([2 x i24]* %p) sanitize_memory {
|
|
; CHECK: @check_array([2 x i24]* [[P:%.*]])
|
|
; CHECK: [[O:%.*]] = load [2 x i24], [2 x i24]* [[P]]
|
|
%o = load [2 x i24], [2 x i24]* %p
|
|
; CHECK: [[FIELD0:%.+]] = extractvalue [2 x i24] %_msld, 0
|
|
; CHECK: [[FIELD1:%.+]] = extractvalue [2 x i24] %_msld, 1
|
|
; CHECK: [[F1_OR:%.+]] = or i24 [[FIELD0]], [[FIELD1]]
|
|
; CHECK: %_mscmp = icmp ne i24 [[F1_OR]], 0
|
|
; CHECK: br i1 %_mscmp
|
|
; CHECK: call void @__msan_warning
|
|
; CHECK: ret [2 x i24] [[O]]
|
|
ret [2 x i24] %o
|
|
}
|