brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 9dfe27e Raw
30 lines · plain
1; RUN: llc < %s -mtriple=i386-apple-darwin | FileCheck %s2; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s3 4define i32 @test1(i32 %a, i8 %b) nounwind #0 {5; CHECK-LABEL: test1:6; CHECK:         crc32b7  %tmp = call i32 @llvm.x86.sse42.crc32.32.8(i32 %a, i8 %b)8  ret i32 %tmp9}10 11define i32 @test2(i32 %a, i8 %b) nounwind #1 {12; CHECK-LABEL: test2:13; CHECK:         crc32b14  %tmp = call i32 @llvm.x86.sse42.crc32.32.8(i32 %a, i8 %b)15  ret i32 %tmp16}17 18define i32 @test3(i32 %a, i8 %b) nounwind #2 {19; CHECK-LABEL: test3:20; CHECK:         crc32b21  %tmp = call i32 @llvm.x86.sse42.crc32.32.8(i32 %a, i8 %b)22  ret i32 %tmp23}24 25declare i32 @llvm.x86.sse42.crc32.32.8(i32, i8) nounwind26 27attributes #0 = { "target-features"="+crc32" }28attributes #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" }29attributes #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" }30