1 ; RUN: llc -mtriple=aarch64-- -verify-machineinstrs < %s | FileCheck %s
5 ; CHECK: .word 12345678
7 define void @f1(ptr noundef %x) !kcfi_type !1 {
8 ; CHECK: ldur w16, [x0, #-4]
9 call void %x() [ "kcfi"(i32 12345678) ]
17 define void @f2(ptr noundef %x) {
18 ; CHECK: ldur w16, [x0, #-4]
19 call void %x() [ "kcfi"(i32 12345678) ]
24 ; CHECK: .word 12345678
27 define void @f3(ptr noundef %x) #0 !kcfi_type !1 {
28 ; CHECK: ldur w16, [x0, #-48]
29 call void %x() [ "kcfi"(i32 12345678) ]
37 define void @f4(ptr noundef %x) #0 {
38 ; CHECK: ldur w16, [x0, #-48]
39 call void %x() [ "kcfi"(i32 12345678) ]
43 attributes #0 = { "patchable-function-prefix"="11" }
45 !llvm.module.flags = !{!0}
46 !0 = !{i32 4, !"kcfi", i32 1}