llvm/test/Transforms/TailCallElim/ptrauth-bundle.ll
raw| 1 | ; RUN: opt < %s -passes=tailcallelim -verify-dom-info -S | FileCheck %s |
| 2 | ; Check that the "ptrauth" operand bundle doesn't prevent tail calls. |
| 3 | |
| 4 | define i64 @f_1(i64 %x, ptr %f_0) { |
| 5 | ; CHECK-LABEL: @f_1( |
| 6 | entry: |
| 7 | ; CHECK: tail call i64 %f_0(i64 %x) [ "ptrauth"(i32 42, i64 %x) ] |
| 8 | %tmp = call i64 %f_0(i64 %x) [ "ptrauth"(i32 42, i64 %x) ] |
| 9 | ret i64 0 |
| 10 | } |