From 4591193b8d0f19547b73452366a08c43785678cc Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 27 May 2011 19:38:10 +0000 Subject: CRC32 intrinsics were renamed at revision 132163. This submission fixes aliasing issues with the old and new names as well as adds test cases for the auto-upgrader. Fixes rdar 9472944. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132207 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Bitcode/sse42_crc32.ll | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/Bitcode/sse42_crc32.ll (limited to 'test/Bitcode/sse42_crc32.ll') diff --git a/test/Bitcode/sse42_crc32.ll b/test/Bitcode/sse42_crc32.ll new file mode 100644 index 0000000..2d77081 --- /dev/null +++ b/test/Bitcode/sse42_crc32.ll @@ -0,0 +1,16 @@ +; Check to make sure old CRC32 intrinsics are auto-upgraded +; correctly. +; +; Rdar: 9472944 +; +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm.x86.sse42.crc32.8(} +; RUN: llvm-dis < %s.bc | grep {i32 @llvm.x86.sse42.crc32.32.8(} +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm.x86.sse42.crc32.16(} +; RUN: llvm-dis < %s.bc | grep {i32 @llvm.x86.sse42.crc32.32.16(} +; RUN: llvm-dis < %s.bc | not grep {i32 @llvm.x86.sse42.crc32.32(} +; RUN: llvm-dis < %s.bc | grep {i32 @llvm.x86.sse42.crc32.32.32(} +; RUN: llvm-dis < %s.bc | not grep {i64 @llvm.x86.sse42.crc64.8(} +; RUN: llvm-dis < %s.bc | grep {i64 @llvm.x86.sse42.crc32.64.8(} +; RUN: llvm-dis < %s.bc | not grep {i64 @llvm.x86.sse42.crc64.8(} +; RUN: llvm-dis < %s.bc | grep {i64 @llvm.x86.sse42.crc32.64.8(} + -- cgit v1.1