diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-05-27 19:38:10 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-05-27 19:38:10 +0000 |
commit | 4591193b8d0f19547b73452366a08c43785678cc (patch) | |
tree | 08343b78db818106cddcb6da13bf953b8a9c1424 /test/Bitcode/sse42_crc32.ll | |
parent | 045c1d4e48e5e06ca05d04af340f7c487bc9975d (diff) | |
download | external_llvm-4591193b8d0f19547b73452366a08c43785678cc.zip external_llvm-4591193b8d0f19547b73452366a08c43785678cc.tar.gz external_llvm-4591193b8d0f19547b73452366a08c43785678cc.tar.bz2 |
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
Diffstat (limited to 'test/Bitcode/sse42_crc32.ll')
-rw-r--r-- | test/Bitcode/sse42_crc32.ll | 16 |
1 files changed, 16 insertions, 0 deletions
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(} + |