1 ; RUN: llc < %s -mtriple=i386-apple-darwin | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
4 define i32 @test1(i32 %a, i8 %b) nounwind #0 {
7 %tmp = call i32 @llvm.x86.sse42.crc32.32.8(i32 %a, i8 %b)
11 define i32 @test2(i32 %a, i8 %b) nounwind #1 {
14 %tmp = call i32 @llvm.x86.sse42.crc32.32.8(i32 %a, i8 %b)
18 define i32 @test3(i32 %a, i8 %b) nounwind #2 {
21 %tmp = call i32 @llvm.x86.sse42.crc32.32.8(i32 %a, i8 %b)
25 declare i32 @llvm.x86.sse42.crc32.32.8(i32, i8) nounwind
27 attributes #0 = { "target-features"="+crc32" }
28 attributes #1 = { "target-features"="+cx8,+fxsr,-3dnow,-3dnowa,-aes,-avx,-avx2,-avx512bf16,-avx512bitalg,-avx512bw,-avx512cd,-avx512dq,-avx512f,-avx512ifma,-avx512pf,-avx512vbmi,-avx512vbmi2,-avx512vl,-avx512vnni,-avx512vp2intersect,-avx512vpopcntdq,-avxvnni,-f16c,-fma,-fma4,-gfni,-kl,-mmx,-pclmul,-sha,-sse,-sse2,-sse3,-sse4.1,-sse4.2,-sse4a,-ssse3,-vaes,-vpclmulqdq,-widekl,-x87,-xop,+crc32" }
29 attributes #2 = { "target-features"="+crc32,+cx8,+fxsr,-3dnow,-3dnowa,-aes,-avx,-avx2,-avx512bf16,-avx512bitalg,-avx512bw,-avx512cd,-avx512dq,-avx512f,-avx512ifma,-avx512pf,-avx512vbmi,-avx512vbmi2,-avx512vl,-avx512vnni,-avx512vp2intersect,-avx512vpopcntdq,-avxvnni,-f16c,-fma,-fma4,-gfni,-kl,-mmx,-pclmul,-sha,-sse,-sse2,-sse3,-sse4.1,-sse4.2,-sse4a,-ssse3,-vaes,-vpclmulqdq,-widekl,-x87,-xop" }