diff options
Diffstat (limited to 'test/Bitcode/sse42_crc32.ll')
-rw-r--r-- | test/Bitcode/sse42_crc32.ll | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/test/Bitcode/sse42_crc32.ll b/test/Bitcode/sse42_crc32.ll index 9b2fcffca8e..1c371c3a235 100644 --- a/test/Bitcode/sse42_crc32.ll +++ b/test/Bitcode/sse42_crc32.ll @@ -3,14 +3,26 @@ ; ; 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.64(} -; RUN: llvm-dis < %s.bc | grep {i64 @llvm.x86.sse42.crc32.64.64(} +; RUN: llvm-dis < %s.bc | FileCheck %s + +; crc32.8 should upgrade to crc32.32.8 +; CHECK: i32 @llvm.x86.sse42.crc32.32.8( +; CHECK-NOT: i32 @llvm.x86.sse42.crc32.8( + +; crc32.16 should upgrade to crc32.32.16 +; CHECK: i32 @llvm.x86.sse42.crc32.32.16( +; CHECK-NOT: i32 @llvm.x86.sse42.crc32.16( + +; crc32.32 should upgrade to crc32.32.32 +; CHECK: i32 @llvm.x86.sse42.crc32.32.32( +; CHECK-NOT: i32 @llvm.x86.sse42.crc32.32( + +; crc64.8 should upgrade to crc32.64.8 +; CHECK: i64 @llvm.x86.sse42.crc32.64.8( +; CHECK-NOT: i64 @llvm.x86.sse42.crc64.8( + +; crc64.64 should upgrade to crc32.64.64 +; CHECK: i64 @llvm.x86.sse42.crc32.64.64( +; CHECK-NOT: i64 @llvm.x86.sse42.crc64.64( + |