1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple arm64e-apple-darwin -verify-machineinstrs -global-isel=0 | FileCheck %s
3 ; RUN: llc < %s -mtriple arm64e-apple-darwin -verify-machineinstrs -global-isel=1 -global-isel-abort=1 | FileCheck %s
4 ; RUN: llc < %s -mtriple aarch64-linux-gnu -mattr=+pauth -verify-machineinstrs -global-isel=0 | FileCheck %s
5 ; RUN: llc < %s -mtriple aarch64-linux-gnu -mattr=+pauth -verify-machineinstrs -global-isel=1 -global-isel-abort=1 | FileCheck %s
7 define i64 @test_strip_ia(i64 %arg) {
8 ; CHECK-LABEL: test_strip_ia:
10 ; CHECK-NEXT: xpaci x0
12 %tmp = call i64 @llvm.ptrauth.strip(i64 %arg, i32 0)
16 define i64 @test_strip_ib(i64 %arg) {
17 ; CHECK-LABEL: test_strip_ib:
19 ; CHECK-NEXT: xpaci x0
21 %tmp = call i64 @llvm.ptrauth.strip(i64 %arg, i32 1)
25 define i64 @test_strip_da(i64 %arg) {
26 ; CHECK-LABEL: test_strip_da:
28 ; CHECK-NEXT: xpacd x0
30 %tmp = call i64 @llvm.ptrauth.strip(i64 %arg, i32 2)
34 define i64 @test_strip_db(i64 %arg) {
35 ; CHECK-LABEL: test_strip_db:
37 ; CHECK-NEXT: xpacd x0
39 %tmp = call i64 @llvm.ptrauth.strip(i64 %arg, i32 3)
43 declare i64 @llvm.ptrauth.strip(i64, i32)