1 ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck %s
3 ; CHECK: .p2align 4, 0x90
4 ; CHECK-LABEL: __cfi_f1:
6 ; CHECK-NEXT: movl $12345678, %eax
7 ; CHECK-LABEL: .Lcfi_func_end0:
8 ; CHECK-NEXT: .size __cfi_f1, .Lcfi_func_end0-__cfi_f1
10 define void @f1(ptr noundef %x) !kcfi_type !1 {
11 ; CHECK: addl -4(%r{{..}}), %r10d
12 call void %x() [ "kcfi"(i32 12345678) ]
16 ; CHECK: .p2align 4, 0x90
17 ; CHECK-NOT: __cfi_f2:
20 define void @f2(ptr noundef %x) {
21 ; CHECK: addl -4(%r{{..}}), %r10d
22 call void %x() [ "kcfi"(i32 12345678) ]
26 ; CHECK: .p2align 4, 0x90
27 ; CHECK-LABEL: __cfi_f3:
29 ; CHECK-NEXT: movl $12345678, %eax
32 define void @f3(ptr noundef %x) #0 !kcfi_type !1 {
33 ; CHECK: addl -15(%r{{..}}), %r10d
34 call void %x() [ "kcfi"(i32 12345678) ]
38 ; CHECK: .p2align 4, 0x90
39 ; CHECK-NOT: __cfi_f4:
42 define void @f4(ptr noundef %x) #0 {
43 ; CHECK: addl -15(%r{{..}}), %r10d
44 call void %x() [ "kcfi"(i32 12345678) ]
48 attributes #0 = { "patchable-function-prefix"="11" }
50 !llvm.module.flags = !{!0}
51 !0 = !{i32 4, !"kcfi", i32 1}