| 1 |
; Test the ICBT instruction is not emitted on POWER7 |
| 2 |
; Based on the ppc64-prefetch.ll test |
| 3 |
; RUN: not --crash llc -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 < %s 2>&1 | FileCheck %s |
| 4 |
|
| 5 |
declare void @llvm.prefetch(ptr, i32, i32, i32) |
| 6 |
|
| 7 |
define void @test(ptr %a, ...) nounwind { |
| 8 |
entry: |
| 9 |
call void @llvm.prefetch(ptr %a, i32 0, i32 3, i32 0) |
| 10 |
ret void |
| 11 |
|
| 12 |
; FIXME: Crashing is not really the correct behavior here, we really should just emit nothing |
| 13 |
; CHECK: Cannot select: {{0x[0-9,a-f]+|t[0-9]+}}: ch = Prefetch |
| 14 |
|
| 15 |
} |
| 16 |
|