llvm/test/CodeGen/PowerPC/ppc64-icbt-pwr8.ll
raw| 1 | ; Test the ICBT instruction on POWER8 |
| 2 | ; Copied from the ppc64-prefetch.ll test |
| 3 | ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 < %s | 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 | ; CHECK-LABEL: @test |
| 13 | ; CHECK: icbt |
| 14 | } |
| 15 | |
| 16 |