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
5 declare void @llvm.prefetch(ptr, i32, i32, i32)
7 define void @test(ptr %a, ...) nounwind {
9 call void @llvm.prefetch(ptr %a, i32 0, i32 3, i32 0)
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 ; CHECK: {{0x[0-9,a-f]+|t[0-9]+}}: i32 = TargetConstant<0>
15 ; CHECK-NEXT: {{0x[0-9,a-f]+|t[0-9]+}}: i32 = TargetConstant<3>
16 ; CHECK-NEXT: {{0x[0-9,a-f]+|t[0-9]+}}: i32 = TargetConstant<0>