mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
b753649d63
This reverts commit r253511. This likely broke the bots in http://lab.llvm.org:8011/builders/clang-ppc64-elf-linux2/builds/20202 http://bb.pgr.jp/builders/clang-3stage-i686-linux/builds/3787 llvm-svn: 253543
21 lines
720 B
LLVM
21 lines
720 B
LLVM
; Test that copy alignment for byval arguments is limited by param-tls slot alignment.
|
|
|
|
; RUN: opt < %s -msan -msan-check-access-address=0 -S | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
%struct.S = type { i64, i64, i64, [8 x i8] }
|
|
|
|
; CHECK: [[A:%.*]] = bitcast i64* {{.*}} add {{.*}} ptrtoint {{.*}} @__msan_param_tls {{.*}} i64 8)
|
|
; CHECK: call void @llvm.memcpy.p0i8.p0i8.i64(i8* [[A]], i8* {{.*}}, i64 32, i32 8, i1 false)
|
|
|
|
define void @Caller() sanitize_memory {
|
|
entry:
|
|
%agg.tmp = alloca %struct.S, align 16
|
|
call void @Callee(i32 1, %struct.S* byval align 16 %agg.tmp)
|
|
ret void
|
|
}
|
|
|
|
declare void @Callee(i32, %struct.S* byval align 16)
|