brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 1aeff7a Raw
44 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple arm64e-apple-darwin             -verify-machineinstrs -global-isel=0 | FileCheck %s3; RUN: llc < %s -mtriple arm64e-apple-darwin             -verify-machineinstrs -global-isel=1 -global-isel-abort=1 | FileCheck %s4; RUN: llc < %s -mtriple aarch64-linux-gnu -mattr=+pauth -verify-machineinstrs -global-isel=0 | FileCheck %s5; RUN: llc < %s -mtriple aarch64-linux-gnu -mattr=+pauth -verify-machineinstrs -global-isel=1 -global-isel-abort=1 | FileCheck %s6 7define i64 @test_strip_ia(i64 %arg) {8; CHECK-LABEL: test_strip_ia:9; CHECK:       %bb.0:10; CHECK-NEXT:    xpaci x011; CHECK-NEXT:    ret12  %tmp = call i64 @llvm.ptrauth.strip(i64 %arg, i32 0)13  ret i64 %tmp14}15 16define i64 @test_strip_ib(i64 %arg) {17; CHECK-LABEL: test_strip_ib:18; CHECK:       %bb.0:19; CHECK-NEXT:    xpaci x020; CHECK-NEXT:    ret21  %tmp = call i64 @llvm.ptrauth.strip(i64 %arg, i32 1)22  ret i64 %tmp23}24 25define i64 @test_strip_da(i64 %arg) {26; CHECK-LABEL: test_strip_da:27; CHECK:       %bb.0:28; CHECK-NEXT:    xpacd x029; CHECK-NEXT:    ret30  %tmp = call i64 @llvm.ptrauth.strip(i64 %arg, i32 2)31  ret i64 %tmp32}33 34define i64 @test_strip_db(i64 %arg) {35; CHECK-LABEL: test_strip_db:36; CHECK:       %bb.0:37; CHECK-NEXT:    xpacd x038; CHECK-NEXT:    ret39  %tmp = call i64 @llvm.ptrauth.strip(i64 %arg, i32 3)40  ret i64 %tmp41}42 43declare i64 @llvm.ptrauth.strip(i64, i32)44