From 1bb48fa8abc12230c9933a49ce7d2b480762ef3c Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Thu, 3 Jul 2014 11:49:50 +0000 Subject: [PATCH] [msan] Add missing attributes in MemorySanitizer tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212267 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Instrumentation/MemorySanitizer/msan_basic.ll | 2 +- test/Instrumentation/MemorySanitizer/store-origin.ll | 2 +- test/Instrumentation/MemorySanitizer/vector_shift.ll | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/Instrumentation/MemorySanitizer/msan_basic.ll b/test/Instrumentation/MemorySanitizer/msan_basic.ll index 3a1b6e02354..3f1f2bcc532 100644 --- a/test/Instrumentation/MemorySanitizer/msan_basic.ll +++ b/test/Instrumentation/MemorySanitizer/msan_basic.ll @@ -651,7 +651,7 @@ define void @VACopy(i8* %p1, i8* %p2) nounwind uwtable sanitize_memory { declare void @llvm.va_start(i8*) nounwind ; Function Attrs: nounwind uwtable -define void @VAStart(i32 %x, ...) { +define void @VAStart(i32 %x, ...) sanitize_memory { entry: %x.addr = alloca i32, align 4 %va = alloca [1 x %struct.__va_list_tag], align 16 diff --git a/test/Instrumentation/MemorySanitizer/store-origin.ll b/test/Instrumentation/MemorySanitizer/store-origin.ll index 024a10a2598..0bd977700e8 100644 --- a/test/Instrumentation/MemorySanitizer/store-origin.ll +++ b/test/Instrumentation/MemorySanitizer/store-origin.ll @@ -20,7 +20,7 @@ entry: ; Function Attrs: nounwind readnone declare void @llvm.dbg.value(metadata, i64, metadata) #1 -attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } +attributes #0 = { nounwind sanitize_memory "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #1 = { nounwind readnone } !llvm.dbg.cu = !{!0} diff --git a/test/Instrumentation/MemorySanitizer/vector_shift.ll b/test/Instrumentation/MemorySanitizer/vector_shift.ll index d32f51b0b9b..91e4bd53c6a 100644 --- a/test/Instrumentation/MemorySanitizer/vector_shift.ll +++ b/test/Instrumentation/MemorySanitizer/vector_shift.ll @@ -13,7 +13,7 @@ declare <8 x i16> @llvm.x86.sse2.pslli.w(<8 x i16>, i32) declare <2 x i64> @llvm.x86.sse2.psll.dq(<2 x i64>, i32) declare <2 x i64> @llvm.x86.sse2.psll.dq.bs(<2 x i64>, i32) -define i64 @test_mmx(i64 %x.coerce, i64 %y.coerce) { +define i64 @test_mmx(i64 %x.coerce, i64 %y.coerce) sanitize_memory { entry: %0 = bitcast i64 %x.coerce to <2 x i32> %1 = bitcast <2 x i32> %0 to x86_mmx @@ -35,7 +35,7 @@ entry: ; CHECK: ret i64 -define <8 x i16> @test_sse2_scalar(<8 x i16> %x, i32 %y) { +define <8 x i16> @test_sse2_scalar(<8 x i16> %x, i32 %y) sanitize_memory { entry: %0 = tail call <8 x i16> @llvm.x86.sse2.pslli.w(<8 x i16> %x, i32 %y) ret <8 x i16> %0 @@ -51,7 +51,7 @@ entry: ; CHECK: ret <8 x i16> -define <8 x i16> @test_sse2(<8 x i16> %x, <8 x i16> %y) { +define <8 x i16> @test_sse2(<8 x i16> %x, <8 x i16> %y) sanitize_memory { entry: %0 = tail call <8 x i16> @llvm.x86.sse2.psrl.w(<8 x i16> %x, <8 x i16> %y) ret <8 x i16> %0 @@ -71,7 +71,7 @@ entry: ; Test variable shift (i.e. vector by vector). -define <4 x i32> @test_avx2(<4 x i32> %x, <4 x i32> %y) { +define <4 x i32> @test_avx2(<4 x i32> %x, <4 x i32> %y) sanitize_memory { entry: %0 = tail call <4 x i32> @llvm.x86.avx2.psllv.d(<4 x i32> %x, <4 x i32> %y) ret <4 x i32> %0 @@ -85,7 +85,7 @@ entry: ; CHECK: = tail call <4 x i32> @llvm.x86.avx2.psllv.d( ; CHECK: ret <4 x i32> -define <8 x i32> @test_avx2_256(<8 x i32> %x, <8 x i32> %y) { +define <8 x i32> @test_avx2_256(<8 x i32> %x, <8 x i32> %y) sanitize_memory { entry: %0 = tail call <8 x i32> @llvm.x86.avx2.psllv.d.256(<8 x i32> %x, <8 x i32> %y) ret <8 x i32> %0 -- 2.34.1