Home | History | Annotate | Download | only in X86
      1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
      2 ; RUN: llc < %s -fast-isel -mtriple=x86_64-unknown-unknown -mattr=+sse4.2 | FileCheck %s --check-prefix=X64
      3 
      4 ; NOTE: This should use IR equivalent to what is generated by clang/test/CodeGen/sse42-builtins.c
      5 
      6 define i64 @test_mm_crc64_u8(i64 %a0, i8 %a1) nounwind{
      7 ; X64-LABEL: test_mm_crc64_u8:
      8 ; X64:       # BB#0:
      9 ; X64-NEXT:    crc32b %sil, %edi
     10 ; X64-NEXT:    movl %edi, %eax
     11 ; X64-NEXT:    retq
     12   %res = call i64 @llvm.x86.sse42.crc32.64.8(i64 %a0, i8 %a1)
     13   ret i64 %res
     14 }
     15 declare i64 @llvm.x86.sse42.crc32.64.8(i64, i8) nounwind readnone
     16 
     17 define i64 @test_mm_crc64_u64(i64 %a0, i64 %a1) nounwind{
     18 ; X64-LABEL: test_mm_crc64_u64:
     19 ; X64:       # BB#0:
     20 ; X64-NEXT:    crc32q %rsi, %rdi
     21 ; X64-NEXT:    movq %rdi, %rax
     22 ; X64-NEXT:    retq
     23   %res = call i64 @llvm.x86.sse42.crc32.64.64(i64 %a0, i64 %a1)
     24   ret i64 %res
     25 }
     26 declare i64 @llvm.x86.sse42.crc32.64.64(i64, i64) nounwind readnone
     27