| 1 |
; RUN: not llc -mtriple=powerpc64-unknown-linux -verify-machineinstrs 2>&1 < %s | FileCheck %s |
| 2 |
|
| 3 |
define void @func(i64 %a, i64 %b) { |
| 4 |
entry: |
| 5 |
%test = icmp slt i64 %a, %b |
| 6 |
br i1 %test, label %ret, label %cold |
| 7 |
cold: |
| 8 |
%thunk = inttoptr i64 244837814094590 to ptr |
| 9 |
call void (i64, i32, ptr, i32, ...) @llvm.experimental.patchpoint.void(i64 4, i32 36, ptr %thunk, i32 0, i64 %a, i64 %b) |
| 10 |
unreachable |
| 11 |
ret: |
| 12 |
ret void |
| 13 |
} |
| 14 |
|
| 15 |
; CHECK: LLVM ERROR: Patchpoint can't request size less than the length of a call. |