mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-11 17:08:42 +00:00
[AArch64] Add test to check the attributes for some intrinsics.
This commit is contained in:
parent
fa9851ebfe
commit
a5a6164f6d
26
llvm/test/Assembler/aarch64-intrinsics-attributes.ll
Normal file
26
llvm/test/Assembler/aarch64-intrinsics-attributes.ll
Normal file
@ -0,0 +1,26 @@
|
||||
; REQUIRES: aarch64-registered-target
|
||||
|
||||
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
||||
|
||||
; Make sure some AArch64 intrinsics have the expected attributes.
|
||||
|
||||
; CHECK: declare i64 @llvm.aarch64.ldxr.p0i64(i64*) [[NOUNWIND:#[0-9]+]]
|
||||
declare i64 @llvm.aarch64.ldxr.p0i64(i64*)
|
||||
|
||||
; CHECK: declare i32 @llvm.aarch64.stxp(i64, i64, i32*) [[NOUNWIND]]
|
||||
declare i32 @llvm.aarch64.stxp(i64, i64, i32*)
|
||||
|
||||
; CHECK: declare i32 @llvm.aarch64.dsb(i32) [[NOUNWIND]]
|
||||
declare i32 @llvm.aarch64.dsb(i32)
|
||||
|
||||
; CHECK: declare i64 @llvm.aarch64.neon.sqdmulls.scalar(i32, i32) [[NOUNWIND_READNONE:#[0-9]+]]
|
||||
declare i64 @llvm.aarch64.neon.sqdmulls.scalar(i32, i32)
|
||||
|
||||
; CHECK: declare <4 x i32> @llvm.aarch64.neon.shadd.v4i32(<4 x i32>, <4 x i32>) [[NOUNWIND_READNONE]]
|
||||
declare <4 x i32> @llvm.aarch64.neon.shadd.v4i32(<4 x i32>, <4 x i32>)
|
||||
|
||||
; CHECK: declare <vscale x 4 x i32> @llvm.aarch64.sve.dup.nxv4i32(<vscale x 4 x i32>, <vscale x 4 x i1>, i32) [[NOUNWIND_READNONE]]
|
||||
declare <vscale x 4 x i32> @llvm.aarch64.sve.dup.nxv4i32(<vscale x 4 x i32>, <vscale x 4 x i1>, i32)
|
||||
|
||||
; CHECK: attributes [[NOUNWIND]] = { nounwind }
|
||||
; CHECK: attributes [[NOUNWIND_READNONE]] = { nounwind readnone }
|
Loading…
Reference in New Issue
Block a user