xref: /llvm-project/llvm/test/CodeGen/AArch64/function-subtarget-features.ll (revision 000f99463314cb869a669cbe17ed5b890e6ea8c8)
1faad6205SEric Christopher; RUN: llc < %s | FileCheck %s
2faad6205SEric Christophertarget datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
3faad6205SEric Christophertarget triple = "aarch64--linux-gnu"
4faad6205SEric Christopher
5faad6205SEric Christopher; This test verifies that we can enable subtarget features via
6faad6205SEric Christopher; the function attributes and generate appropriate code (or,
7faad6205SEric Christopher; in this case, select the instruction at all).
8faad6205SEric Christopher
9faad6205SEric Christopher; Function Attrs: nounwind
10faad6205SEric Christopherdefine <16 x i8> @foo(<16 x i8> %data, <16 x i8> %key) #0 {
11*000f9946STim Northover  %vaeseq_v.i = call <16 x i8> @llvm.aarch64.crypto.aese(<16 x i8> %data, <16 x i8> %key)
12*000f9946STim Northover  ret <16 x i8> %vaeseq_v.i
13faad6205SEric Christopher}
14faad6205SEric Christopher
15faad6205SEric Christopher; CHECK: foo
16faad6205SEric Christopher; CHECK: aese
17faad6205SEric Christopher
18faad6205SEric Christopher; Function Attrs: nounwind readnone
19faad6205SEric Christopherdeclare <16 x i8> @llvm.aarch64.crypto.aese(<16 x i8>, <16 x i8>)
20faad6205SEric Christopher
21faad6205SEric Christopherattributes #0 = { nounwind "target-features"="+neon,+crc,+crypto" }
22