Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin9 -mattr=sse4.2 | FileCheck %s -check-prefix=X64
      2 
      3 declare i64 @llvm.x86.sse42.crc32.64.8(i64, i8) nounwind
      4 declare i64 @llvm.x86.sse42.crc32.64.64(i64, i64) nounwind
      5 
      6 define i64 @crc32_64_8(i64 %a, i8 %b) nounwind {
      7   %tmp = call i64 @llvm.x86.sse42.crc32.64.8(i64 %a, i8 %b)
      8   ret i64 %tmp
      9 
     10 ; X64: _crc32_64_8:
     11 ; X64:     crc32b   %sil,
     12 }
     13 
     14 define i64 @crc32_64_64(i64 %a, i64 %b) nounwind {
     15   %tmp = call i64 @llvm.x86.sse42.crc32.64.64(i64 %a, i64 %b)
     16   ret i64 %tmp
     17 
     18 ; X64: _crc32_64_64:
     19 ; X64:     crc32q   %rsi,
     20 }
     21 
     22