36 lines · plain
1;; This file contains the new semantic of the branch-target-enforcement, sign-return-address.2;; Used for test mixing a mixed link case and also verify the import too in llc.3 4; RUN: llc -mattr=+pauth -mattr=+bti %s -o - | FileCheck %s5 6target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"7target triple = "aarch64-unknown-linux-gnu"8 9define dso_local void @bar() #0 {10entry:11 ret void12}13; CHECK-LABEL: bar:14; CHECK-NOT: hint15; CHECK-NOT: bti16; CHECK: ret17 18define dso_local void @baz() #1 {19entry:20 ret void21}22 23; CHECK-LABEL: baz:24; CHECK: bti c25; CHECK: ret26 27attributes #0 = { noinline nounwind optnone uwtable }28attributes #1 = { noinline nounwind optnone uwtable "branch-target-enforcement" }29 30!llvm.module.flags = !{!0, !1, !2, !3}31 32!0 = !{i32 8, !"branch-target-enforcement", i32 2}33!1 = !{i32 8, !"sign-return-address", i32 2}34!2 = !{i32 8, !"sign-return-address-all", i32 2}35!3 = !{i32 8, !"sign-return-address-with-bkey", i32 2}36