Home | History | Annotate | Download | only in X86
      1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
      2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=-avx,+sse4.2 -show-mc-encoding | FileCheck %s --check-prefixes=CHECK,SSE
      3 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+avx -show-mc-encoding | FileCheck %s --check-prefixes=CHECK,AVX,AVX1
      4 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+avx512f,+avx512bw,+avx512dq,+avx512vl -show-mc-encoding | FileCheck %s --check-prefixes=CHECK,AVX,AVX512
      5 
      6 declare i64 @llvm.x86.sse42.crc32.64.8(i64, i8) nounwind
      7 declare i64 @llvm.x86.sse42.crc32.64.64(i64, i64) nounwind
      8 
      9 define i64 @crc32_64_8(i64 %a, i8 %b) nounwind {
     10 ; CHECK-LABEL: crc32_64_8:
     11 ; CHECK:       ## %bb.0:
     12 ; CHECK-NEXT:    crc32b %sil, %edi ## encoding: [0xf2,0x40,0x0f,0x38,0xf0,0xfe]
     13 ; CHECK-NEXT:    movq %rdi, %rax ## encoding: [0x48,0x89,0xf8]
     14 ; CHECK-NEXT:    retq ## encoding: [0xc3]
     15   %tmp = call i64 @llvm.x86.sse42.crc32.64.8(i64 %a, i8 %b)
     16   ret i64 %tmp
     17 }
     18 
     19 define i64 @crc32_64_64(i64 %a, i64 %b) nounwind {
     20 ; CHECK-LABEL: crc32_64_64:
     21 ; CHECK:       ## %bb.0:
     22 ; CHECK-NEXT:    crc32q %rsi, %rdi ## encoding: [0xf2,0x48,0x0f,0x38,0xf1,0xfe]
     23 ; CHECK-NEXT:    movq %rdi, %rax ## encoding: [0x48,0x89,0xf8]
     24 ; CHECK-NEXT:    retq ## encoding: [0xc3]
     25   %tmp = call i64 @llvm.x86.sse42.crc32.64.64(i64 %a, i64 %b)
     26   ret i64 %tmp
     27 }
     28 
     29