forked from OSchip/llvm-project
20 lines
776 B
LLVM
20 lines
776 B
LLVM
; RUN: not opt -passes=verify -S < %s 2>&1 | FileCheck %s
|
|
|
|
define void @f(i32* %p) {
|
|
; CHECK: Intrinsic requires elementtype attribute on first argument
|
|
%a = call i64 @llvm.aarch64.ldxr.p0i32(i32* %p)
|
|
; CHECK: Intrinsic requires elementtype attribute on second argument
|
|
%c = call i32 @llvm.aarch64.stxr.p0i32(i64 0, i32* %p)
|
|
|
|
; CHECK: Intrinsic requires elementtype attribute on first argument
|
|
%a2 = call i64 @llvm.aarch64.ldaxr.p0i32(i32* %p)
|
|
; CHECK: Intrinsic requires elementtype attribute on second argument
|
|
%c2 = call i32 @llvm.aarch64.stlxr.p0i32(i64 0, i32* %p)
|
|
ret void
|
|
}
|
|
|
|
declare i64 @llvm.aarch64.ldxr.p0i32(i32*)
|
|
declare i64 @llvm.aarch64.ldaxr.p0i32(i32*)
|
|
declare i32 @llvm.aarch64.stxr.p0i32(i64, i32*)
|
|
declare i32 @llvm.aarch64.stlxr.p0i32(i64, i32*)
|